|
| | Matrix ()=default |
| | empty constructor
|
| | Matrix (const size_t aNumRows, const size_t aNumCols) |
| | Constructor without fill value.
|
| | Matrix (const size_t aNumRows, const size_t aNumCols, const real aValue) |
| | Constructor with fill value.
|
| | Matrix (const std::initializer_list< std::initializer_list< T > > &aInitList) |
| | Constructor with initializer list.
|
| | Matrix (const MatrixType &aExpression) |
| | Constructor from expression.
|
| template<typename ET, typename OP> |
| | Matrix (const arma::Op< ET, OP > &aExpression) |
| | Constructor from expression.
|
| | Matrix (const Matrix< T > &aMatrix) |
| | copy constructor
|
| | Matrix (Matrix< T > &&aMatrix) noexcept |
| | move constructor
|
| virtual | ~Matrix ()=default |
| | empty destructor
|
| T * | data () |
| const T * | data () const |
| MatrixType & | matrix_data () |
| const MatrixType & | matrix_data () const |
| void | fill (const T &aValue) |
| void | set_size (const size_t aNumRows, const size_t aNumCols) |
| void | set_size (const size_t aNumRows, const size_t aNumCols, const T &aValue) |
| size_t | n_rows () const |
| size_t | n_cols () const |
| size_t | capacity () const |
| | length of data container
|
| size_t | spacing () const |
| | inter-column stride of the data container ( the leading dimension in BLAS terms; here always n_rows )
|
| Matrix< T > & | operator= (Matrix< T > &&aMatrix) noexcept |
| | move assignment operator
|
| Matrix< T > & | operator= (const Matrix< T > &aMatrix) |
| | copy assignment operator
|
| T & | operator() (const size_t aRowIndex, const size_t aColIndex) |
| | access operator ( writable version )
|
| virtual const T & | operator() (const size_t aRowIndex, const size_t aColIndex) const |
| | access operator ( const version )
|
| auto | row (const size_t aRowIndex) -> decltype(mMatrix.row(aRowIndex)) |
| auto | row (const size_t aRowIndex) const -> decltype(mMatrix.row(aRowIndex)) |
| auto | col (const size_t aColIndex) -> decltype(mMatrix.col(aColIndex)) |
| auto | col (const size_t aColIndex) const -> decltype(mMatrix.col(aColIndex)) |
| auto | submat (const size_t aFirstRow, const size_t aFirstCol, const size_t aLastRow, const size_t aLastCol) -> decltype(mMatrix.submat(aFirstRow, aFirstCol, aLastRow, aLastCol)) |
| auto | submat (const size_t aFirstRow, const size_t aFirstCol, const size_t aLastRow, const size_t aLastCol) const -> decltype(mMatrix.submat(aFirstRow, aFirstCol, aLastRow, aLastCol)) |
| void | set_row (const size_t aRowIndex, const Vector< T > &aVector) |
| template<typename ET> |
| void | set_row (const size_t aColIndex, const ET &aExpression) |
| void | set_col (const size_t aColIndex, const Vector< T > &aVector) |
| template<typename ET> |
| void | set_col (const size_t aColIndex, const ET &aExpression) |
| Matrix< T > & | operator= (const T &aValue) |
| | Fill with value.
|
| template<typename ET> |
| Matrix< T > & | operator= (const ET &aExpression) |
| | Fill with expression.
|
| Matrix< T > & | operator+= (const T &aValue) |
| Matrix< T > & | operator+= (T &aValue) |
| Matrix< T > & | operator+= (const Matrix< T > &aMatrix) |
| Matrix< T > & | operator+= (const MatrixType &aExpression) |
| Matrix< T > & | operator-= (const T &aValue) |
| Matrix< T > & | operator-= (const Matrix< T > &aMatrix) |
| Matrix< T > & | operator-= (const MatrixType &aExpression) |
| Matrix< T > & | operator*= (const T &aValue) |
| Matrix< T > & | operator*= (const Matrix< T > &aMatrix) |
| Matrix< T > & | operator*= (const MatrixType &aExpression) |
| Matrix< T > & | operator/= (const T &aValue) |
| void | print (const std::string aLabel="Matrix") const |
| | Matrix ()=default |
| | empty constructor
|
| | Matrix (const size_t aNumRows, const size_t aNumCols) |
| | Constructor without fill value.
|
| | Matrix (const size_t aNumRows, const size_t aNumCols, const real aValue) |
| | Constructor with fill value.
|
| | Matrix (const std::initializer_list< std::initializer_list< T > > &aInitList) |
| | Constructor with initializer list.
|
| | Matrix (const MatrixType &aExpression) |
| | Constructor from expression.
|
| template<typename MT, bool SO> |
| | Matrix (const blaze::Matrix< MT, SO > &aExpression) |
| | Constructor from matrix expression.
|
| template<typename VT> |
| | Matrix (const blaze::DenseVector< VT, false > &aExpression) |
| | Constructor from column vector expression.
|
| template<typename VT> |
| | Matrix (const blaze::DenseVector< VT, true > &aExpression) |
| | Constructor from row vector expression.
|
| | Matrix (const Matrix< T > &aMatrix) |
| | copy constructor
|
| | Matrix (Matrix< T > &&aMatrix) noexcept |
| | move constructor
|
| virtual | ~Matrix ()=default |
| | empty destructor
|
| T * | data () |
| const T * | data () const |
| MatrixType & | matrix_data () |
| const MatrixType & | matrix_data () const |
| void | fill (const T &aValue) |
| void | set_size (const size_t aNumRows, const size_t aNumCols) |
| void | set_size (const size_t aNumRows, const size_t aNumCols, const T &aValue) |
| size_t | n_rows () const |
| size_t | n_cols () const |
| size_t | capacity () const |
| | length of data container
|
| size_t | spacing () const |
| | inter-column stride of the data container ( the leading dimension in BLAS terms; exceeds n_rows when blaze pads columns for SIMD alignment )
|
| Matrix< T > & | operator= (Matrix< T > &&aMatrix) noexcept |
| | move assignment operator
|
| Matrix< T > & | operator= (const Matrix< T > &aMatrix) |
| | copy assignment operator
|
| T & | operator() (const size_t aRowIndex, const size_t aColIndex) |
| | access operator ( writable version )
|
| virtual const T & | operator() (const size_t aRowIndex, const size_t aColIndex) const |
| | access operator ( const version )
|
| auto | row (const size_t aRowIndex) -> decltype(blaze::row(mMatrix, aRowIndex)) |
| auto | row (const size_t aRowIndex) const -> decltype(blaze::row(mMatrix, aRowIndex)) |
| auto | col (const size_t aColIndex) -> decltype(blaze::column(mMatrix, aColIndex)) |
| auto | col (const size_t aColIndex) const -> decltype(blaze::column(mMatrix, aColIndex)) |
| auto | submat (const size_t aFirstRow, const size_t aFirstCol, const size_t aLastRow, const size_t aLastCol) -> decltype(blaze::submatrix(mMatrix, aFirstRow, aFirstCol, aLastRow, aLastCol)) |
| auto | submat (const size_t aFirstRow, const size_t aFirstCol, const size_t aLastRow, const size_t aLastCol) const -> decltype(blaze::submatrix(mMatrix, aFirstRow, aFirstCol, aLastRow, aLastCol)) |
| void | set_row (const size_t aRowIndex, const Vector< T > &aVector) |
| template<typename ET> |
| void | set_row (const size_t aRowIndex, const ET &aExpression) |
| void | set_col (const size_t aColIndex, const Vector< T > &aVector) |
| template<typename ET> |
| void | set_col (const size_t aRowIndex, const ET &aExpression) |
| Matrix< T > & | operator= (const T &aValue) |
| | Fill with value.
|
| template<typename MT, bool SO> |
| Matrix< T > & | operator= (const blaze::Matrix< MT, SO > &aExpression) |
| | Fill with matrix expression.
|
| template<typename VT> |
| Matrix< T > & | operator= (const blaze::DenseVector< VT, false > &aExpression) |
| | Fill with column vector expression.
|
| template<typename VT> |
| Matrix< T > & | operator= (const blaze::DenseVector< VT, true > &aExpression) |
| | Fill with row vector expression.
|
| Matrix< T > & | operator+= (const T &aValue) |
| Matrix< T > & | operator+= (const Matrix< T > &aMatrix) |
| Matrix< T > & | operator-= (const T &aValue) |
| Matrix< T > & | operator-= (const Matrix< T > &aMatrix) |
| Matrix< T > & | operator*= (const T &aValue) |
| Matrix< T > & | operator*= (const Matrix< T > &aMatrix) |
| Matrix< T > & | operator/= (const T &aValue) |
| void | print (const std::string aLabel="Matrix") const |
| void | print (const std::string aLabel) const |
| void | print (const std::string aLabel) const |
template<typename T>
class belfem::Matrix< T >
Dense column-major matrix.
The backend (Armadillo or Blaze) is chosen at build time; both provide the same belfem::Matrix interface.
- See also
- LAPACK Wrapper Usage Guide