A matrix base class that allows assignment of the internal matrix. There is no operator[] for base matrix classes.
Definition at line 217 of file MatrixBase.hpp.
#include <MatrixBase.hpp>
Public Member Functions | |
template<class E > | |
BaseClass & | assignFrom (const ConstMatrixBase< T, E > &x) |
template<class E > | |
BaseClass & | assignFrom (const ConstVectorBase< T, E > &x) |
BaseClass & | assignFrom (const std::valarray< T > &x) |
BaseClass & | assignFrom (const T *x) |
BaseClass & | assignFrom (T x) |
size_t | cols () const |
returns the number of columns in the matrix More... | |
T & | operator() (size_t i, size_t j) |
returns a reference to the (i,j) element of the matrix. More... | |
BaseClass & | operator*= (const T x) |
multiplies each element in this matrix by x. More... | |
template<class E > | |
BaseClass & | operator+= (const ConstMatrixBase< T, E > &x) |
template<class E > | |
BaseClass & | operator+= (const ConstVectorBase< T, E > &x) |
BaseClass & | operator+= (const std::valarray< T > &x) |
BaseClass & | operator+= (const T *x) |
BaseClass & | operator+= (T x) |
const BaseClass | operator- () |
unary minus: multiplies each element in this matrix by -1. More... | |
template<class E > | |
BaseClass & | operator-= (const ConstMatrixBase< T, E > &x) |
template<class E > | |
BaseClass & | operator-= (const ConstVectorBase< T, E > &x) |
BaseClass & | operator-= (const std::valarray< T > &x) |
BaseClass & | operator-= (const T *x) |
BaseClass & | operator-= (T x) |
BaseClass & | operator/= (const T x) |
divides each element in this matrix by x. More... | |
RefMatrixBase () | |
default constructor More... | |
size_t | rows () const |
returns the number of rows in the matrix More... | |
size_t | size () const |
returns the rows()*cols() size of the matrix More... | |
BaseClass & | swapCols (size_t col1, size_t col2) |
BaseClass & | swapRows (size_t row1, size_t row2) |
BaseClass & | zeroize () |
BaseClass & | zeroizeCol (size_t c) |
BaseClass & | zeroizeRow (size_t r) |
virtual | ~RefMatrixBase () |
![]() | |
Vector< T > | colCopy (size_t c, size_t r=0) const |
size_t | cols () const |
the number of columns in the matrix More... | |
ConstMatrixBase () | |
default constructor More... | |
Vector< T > | diagCopy (void) const |
bool | isDiagonal () const |
returns true if this is a diagonal matrix More... | |
bool | isLT () const |
returns true if this is a lower triangular matrix. More... | |
bool | isSquare () const |
returns true if this is a square matrix (false for a null matrix). More... | |
bool | isSymmetric () const |
bool | isUT () const |
returns true if this is an upper triangular matrix. More... | |
T | operator() (size_t i, size_t j) const |
Vector< T > | rowCopy (size_t r, size_t c=0) const |
size_t | rows () const |
the number of rows in the matrix More... | |
size_t | size () const |
the rows()*cols() size of the matrix. More... | |
virtual | ~ConstMatrixBase () |
Additional Inherited Members | |
![]() | |
T | constMatrixRef (size_t i, size_t j) const |
|
inlineexplicit |
default constructor
Definition at line 221 of file MatrixBase.hpp.
|
inlinevirtual |
Definition at line 223 of file MatrixBase.hpp.
|
inline |
remember that operator= isn't inherited. use assignFrom in derived classes' copy constructors and operator=. performs = on each element of this matrix with each element of x
MatrixException |
Definition at line 288 of file MatrixBase.hpp.
|
inline |
performs = on each element of this matrix with each element of x
MatrixException |
Definition at line 308 of file MatrixBase.hpp.
|
inline |
performs = on each element of this matrix with each element of x
MatrixException |
Definition at line 328 of file MatrixBase.hpp.
|
inline |
performs = on each element of this matrix with each element of x
Definition at line 346 of file MatrixBase.hpp.
|
inline |
performs = on each element of this matrix with x
Definition at line 357 of file MatrixBase.hpp.
|
inline |
returns the number of columns in the matrix
Definition at line 234 of file MatrixBase.hpp.
|
inline |
returns a reference to the (i,j) element of the matrix.
Definition at line 227 of file MatrixBase.hpp.
|
inline |
multiplies each element in this matrix by x.
Definition at line 541 of file MatrixBase.hpp.
|
inline |
performs += on each element of this matrix with each element of x
MatrixException |
Definition at line 373 of file MatrixBase.hpp.
|
inline |
performs += on each element of this matrix with each element of x
MatrixException |
Definition at line 393 of file MatrixBase.hpp.
|
inline |
performs += on each element of this matrix with each element of x
MatrixException |
Definition at line 413 of file MatrixBase.hpp.
|
inline |
performs += on each element of this matrix with each element of x
Definition at line 431 of file MatrixBase.hpp.
|
inline |
performs += on each element of this matrix with x
Definition at line 442 of file MatrixBase.hpp.
|
inline |
unary minus: multiplies each element in this matrix by -1.
Definition at line 565 of file MatrixBase.hpp.
|
inline |
performs -= on each element of this matrix with each element of x
MatrixException |
Definition at line 459 of file MatrixBase.hpp.
|
inline |
performs -= on each element of this matrix with each element of x
MatrixException |
Definition at line 479 of file MatrixBase.hpp.
|
inline |
performs -= on each element of this matrix with each element of x
MatrixException |
Definition at line 499 of file MatrixBase.hpp.
|
inline |
performs -= on each element of this matrix with each element of x
Definition at line 517 of file MatrixBase.hpp.
|
inline |
performs -= on each element of this matrix with x
Definition at line 528 of file MatrixBase.hpp.
|
inline |
divides each element in this matrix by x.
Definition at line 553 of file MatrixBase.hpp.
|
inline |
returns the number of rows in the matrix
Definition at line 237 of file MatrixBase.hpp.
|
inline |
returns the rows()*cols() size of the matrix
Definition at line 231 of file MatrixBase.hpp.
|
inline |
swaps columns col1 and col2 in this matrix.
MatrixException |
Definition at line 603 of file MatrixBase.hpp.
|
inline |
swaps rows row1 and row2 in this matrix.
MatrixException |
Definition at line 579 of file MatrixBase.hpp.
|
inline |
any value with absolute value below RefVectorBaseHelper::zeroTolerance is set to 0.
Definition at line 241 of file MatrixBase.hpp.
|
inline |
any value in column c with absolute value below RefVectorBaseHelper::zeroTolerance is set to 0.
Definition at line 264 of file MatrixBase.hpp.
|
inline |
any value in row r with absolute value below RefVectorBaseHelper::zeroTolerance is set to 0.
Definition at line 253 of file MatrixBase.hpp.