#include <Matrix.hpp>
Inheritance diagram for Matrix:


This class is STL compliant with the iterator proceeding in row major order. Operators +=, -=, *= and /= are implemented in RefMatrixBase.
Definition at line 59 of file Matrix.hpp.
Public Types | |
| typedef Vector< T >::value_type | value_type |
| STL value_type. | |
| typedef Vector< T >::reference | reference |
| STL reference type. | |
| typedef Vector< T >::const_reference | const_reference |
| STL const reference type. | |
| typedef Vector< T >::iterator | iterator |
| STL iterator type. | |
| typedef Vector< T >::const_iterator | const_iterator |
| STL const iterator type. | |
Public Member Functions | |
| Matrix () | |
| default constructor | |
| Matrix (size_t rows, size_t cols) | |
| constructor given an initial size | |
| Matrix (size_t rows, size_t cols, T initialValue) | |
| constructor for an initial size and value | |
| Matrix (size_t rows, size_t cols, const T *vec) | |
| copies out the contents of vec to initialize the matrix | |
| template<class BaseClass> | |
| Matrix (size_t rows, size_t cols, const ConstVectorBase< T, BaseClass > &vec) | |
| copies out the contents of vec to initialize the matrix | |
| template<class BaseClass> | |
| Matrix (const ConstMatrixBase< T, BaseClass > &mat) | |
| constructor for a ConstMatrixBase object | |
| template<class BaseClass> | |
| Matrix (const ConstMatrixBase< T, BaseClass > &mat, size_t topRow, size_t topCol, size_t numRows, size_t numCols) | |
| submatrix constructor | |
| iterator | begin () |
| STL begin. | |
| const_iterator | begin () const |
| STL const begin. | |
| iterator | end () |
| STL end. | |
| const_iterator | end () const |
| STL const end. | |
| value_type | front () |
| STL front. | |
| const_reference | front () const |
| STL const front. | |
| bool | empty () const |
| STL empty. | |
| size_t | size () const |
| STL size. | |
| size_t | max_size () const |
| STL max size. | |
| size_t | rows () const |
| The number of rows in the matrix. | |
| size_t | cols () const |
| The number of columns in the matrix. | |
| MatrixRowSlice< T > | rowRef (size_t rowNum, const std::slice &s) |
| A reference slice of a row with a given std::slice. | |
| MatrixRowSlice< T > | rowRef (size_t rowNum, size_t colNum=0) |
| A reference slice of a row with a starting column (i.e. sub-row). | |
| ConstMatrixRowSlice< T > | row (size_t rowNum, const std::slice &s) const |
| A const reference slice of a row with a given std::slice. | |
| ConstMatrixRowSlice< T > | row (size_t rowNum, size_t colNum=0) const |
| A const reference slice of a row with a starting column (i.e. sub-row). | |
| MatrixColSlice< T > | colRef (size_t colNum, const std::slice &s) |
| A reference column with a given slice. | |
| MatrixColSlice< T > | colRef (size_t colNum, size_t rowNum=0) |
| A reference column with a starting row number (i.e. sub-column). | |
| ConstMatrixColSlice< T > | col (size_t colNum, const std::slice &s) const |
| A const reference column with a given slice. | |
| ConstMatrixColSlice< T > | col (size_t colNum, size_t rowNum=0) const |
| A const reference column with a starting row number (i.e. sub-column). | |
| T & | operator() (size_t rowNum, size_t colNum) |
| Non-const matrix operator(row,col). | |
| T | operator() (size_t rowNum, size_t colNum) const |
| Const matrix operator(row,col). | |
| MatrixRowSlice< T > | operator[] (size_t row) |
| operator[] that returns a row slice | |
| ConstMatrixRowSlice< T > | operator[] (size_t rowNum) const |
| const operator[] that returns a const row slice | |
| Matrix & | resize (size_t rows, size_t cols) |
| Resizes the matrix to rows*cols. | |
| Matrix & | resize (size_t rows, size_t cols, const T initialValue) |
| Matrix & | operator= (const T *array) |
| Assigns this matrix to a T* in column major order. | |
| Matrix & | operator= (const std::valarray< T > array) |
| Assigns the contents of this matrix to those in array in column major order. | |
| Matrix & | operator= (const T t) |
Assigns all elements of the matrix to t. | |
| Matrix & | operator= (const Matrix &mat) |
| Copies the other matrix. | |
| template<class BaseClass> | |
| Matrix & | operator= (const ConstMatrixBase< T, BaseClass > &mat) |
| Copies from any matrix. | |
| template<class BaseClass> | |
| Matrix & | operator= (const ConstVectorBase< T, BaseClass > &mat) |
| Copies from any vector. | |
|
|
STL const iterator type.
Definition at line 71 of file Matrix.hpp. |
|
|
STL const reference type.
Definition at line 67 of file Matrix.hpp. |
|
|
STL iterator type.
Definition at line 69 of file Matrix.hpp. |
|
|
STL reference type.
Definition at line 65 of file Matrix.hpp. |
|
|
STL value_type.
Definition at line 63 of file Matrix.hpp. |
|
||||||||||||||||
|
copies out the contents of vec to initialize the matrix
Definition at line 83 of file Matrix.hpp. |
|
|
constructor for a ConstMatrixBase object
Definition at line 88 of file Matrix.hpp. |
|
||||||||||||||||||||||||
|
submatrix constructor
Definition at line 99 of file Matrix.hpp. |
|
|
STL const begin.
Definition at line 127 of file Matrix.hpp. |
|
|
STL begin.
Definition at line 125 of file Matrix.hpp. Referenced by HarrisPriesterDrag::getDensityCoeficentsByF107(), SolverGeneral::getSolution(), and SolverGeneral::getVariance(). |
|
|
|
STL empty.
Definition at line 137 of file Matrix.hpp. |
|
|
STL const end.
Definition at line 131 of file Matrix.hpp. |
|
|
|
STL const front.
Definition at line 135 of file Matrix.hpp. |
|
|
STL front.
Definition at line 133 of file Matrix.hpp. |
|
|
STL max size.
Definition at line 141 of file Matrix.hpp. |
|
||||||||||||
|
Const matrix operator(row,col).
Reimplemented from ConstMatrixBase< T, Matrix< T > >. Definition at line 169 of file Matrix.hpp. |
|
||||||||||||
|
Non-const matrix operator(row,col).
Reimplemented from RefMatrixBase< T, Matrix< T > >. Definition at line 166 of file Matrix.hpp. |
|
|
Copies from any vector.
Definition at line 213 of file Matrix.hpp. |
|
|
Copies from any matrix.
Definition at line 203 of file Matrix.hpp. |
|
|
Copies the other matrix.
Definition at line 199 of file Matrix.hpp. |
|
|
Assigns all elements of the matrix to
Definition at line 196 of file Matrix.hpp. |
|
|
Assigns the contents of this matrix to those in array in column major order.
Definition at line 193 of file Matrix.hpp. |
|
|
Assigns this matrix to a T* in column major order.
Definition at line 189 of file Matrix.hpp. |
|
|
const operator[] that returns a const row slice
Definition at line 175 of file Matrix.hpp. |
|
|
operator[] that returns a row slice
Definition at line 172 of file Matrix.hpp. |
|
|
|
STL size.
Reimplemented from RefMatrixBase< T, Matrix< T > >. Definition at line 139 of file Matrix.hpp. Referenced by MatrixTest1(), and PRSolution::PrepareAutonomousSolution(). |
1.3.9.1