class ConstantMatrixType

Declaration

class ConstantMatrixType : public MatrixType { /* full declaration omitted */ };

Description

Represents a concrete matrix type with constant number of rows and columns

Declared at: clang/include/clang/AST/Type.h:3527

Inherits from: MatrixType

Member Variables

protected unsigned int NumRows
Number of rows and columns.
protected unsigned int NumColumns
protected static const unsigned int MaxElementsPerDimension = (1 << 20) - 1

Inherited from MatrixType:

protected ElementType

Inherited from Type:

protected

Method Overview

  • protected ConstantMatrixType(clang::QualType MatrixElementType, unsigned int NRows, unsigned int NColumns, clang::QualType CanonElementType)
  • protected ConstantMatrixType(clang::Type::TypeClass typeClass, clang::QualType MatrixType, unsigned int NRows, unsigned int NColumns, clang::QualType CanonElementType)
  • public void Profile(llvm::FoldingSetNodeID & ID)
  • public static void Profile(llvm::FoldingSetNodeID & ID, clang::QualType ElementType, unsigned int NumRows, unsigned int NumColumns, clang::Type::TypeClass TypeClass)
  • public static bool classof(const clang::Type * T)
  • public static constexpr unsigned int getMaxElementsPerDimension()
  • public unsigned int getNumColumns() const
  • public unsigned int getNumElementsFlattened() const
  • public unsigned int getNumRows() const
  • public static constexpr bool isDimensionValid(size_t NumElements)

Inherited from MatrixType:

Inherited from FoldingSetBase::Node:

Inherited from Type:

Inherited from ExtQualsTypeCommonBase:

    Methods

    ConstantMatrixType(
        clang::QualType MatrixElementType,
        unsigned int NRows,
        unsigned int NColumns,
        clang::QualType CanonElementType)

    Declared at: clang/include/clang/AST/Type.h:3537

    Parameters

    clang::QualType MatrixElementType
    unsigned int NRows
    unsigned int NColumns
    clang::QualType CanonElementType

    ConstantMatrixType(
        clang::Type::TypeClass typeClass,
        clang::QualType MatrixType,
        unsigned int NRows,
        unsigned int NColumns,
        clang::QualType CanonElementType)

    Declared at: clang/include/clang/AST/Type.h:3540

    Parameters

    clang::Type::TypeClass typeClass
    clang::QualType MatrixType
    unsigned int NRows
    unsigned int NColumns
    clang::QualType CanonElementType

    void Profile(llvm::FoldingSetNodeID& ID)

    Declared at: clang/include/clang/AST/Type.h:3565

    Parameters

    llvm::FoldingSetNodeID& ID

    static void Profile(
        llvm::FoldingSetNodeID& ID,
        clang::QualType ElementType,
        unsigned int NumRows,
        unsigned int NumColumns,
        clang::Type::TypeClass TypeClass)

    Declared at: clang/include/clang/AST/Type.h:3570

    Parameters

    llvm::FoldingSetNodeID& ID
    clang::QualType ElementType
    unsigned int NumRows
    unsigned int NumColumns
    clang::Type::TypeClass TypeClass

    static bool classof(const clang::Type* T)

    Declared at: clang/include/clang/AST/Type.h:3579

    Parameters

    const clang::Type* T

    static constexpr unsigned int
    getMaxElementsPerDimension()

    Description

    Returns the maximum number of elements per dimension.

    Declared at: clang/include/clang/AST/Type.h:3561

    unsigned int getNumColumns() const

    Description

    Returns the number of columns in the matrix.

    Declared at: clang/include/clang/AST/Type.h:3548

    unsigned int getNumElementsFlattened() const

    Description

    Returns the number of elements required to embed the matrix into a vector.

    Declared at: clang/include/clang/AST/Type.h:3551

    unsigned int getNumRows() const

    Description

    Returns the number of rows in the matrix.

    Declared at: clang/include/clang/AST/Type.h:3545

    static constexpr bool isDimensionValid(
        size_t NumElements)

    Description

    Returns true if \p NumElements is a valid matrix dimension.

    Declared at: clang/include/clang/AST/Type.h:3556

    Parameters

    size_t NumElements