|
Simpatico
v1.10
|
Fixed Size Matrix.
The FMatrix class wraps a statically allocated 1D C array, but provides access to its elements via the A(i,j) Matrix syntax.
Template parameters M and N are the number of rows and columns respectively, so that capacity1 = M and capacity2 = N.
#include <FMatrix.h>
Public Member Functions | |
| FMatrix () | |
| Default constructor. More... | |
| FMatrix (const FMatrix< Data, M, N > &other) | |
| Copy constructor. More... | |
| ~FMatrix () | |
| Destructor. More... | |
| FMatrix< Data, M, N > & | operator= (const FMatrix< Data, M, N > &other) |
| Assignment. More... | |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int version) |
| Serialize an FMatrix to/from an Archive. More... | |
Public Member Functions inherited from Util::Matrix< Data > | |
| virtual | ~Matrix () |
| Destructor. More... | |
| int | capacity1 () const |
| Get number of rows (range of the first array index). More... | |
| int | capacity2 () const |
| Get number of columns (range of the second array index). More... | |
| const Data & | operator() (int i, int j) const |
| Return element (i,j) of matrix by const reference. More... | |
| Data & | operator() (int i, int j) |
| Return element (i,j) of matrix by reference. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Util::Matrix< Data > | |
| Matrix () | |
| Default constructor. More... | |
Protected Attributes inherited from Util::Matrix< Data > | |
| Data * | data_ |
| Pointer to 1D C array of all elements. More... | |
| int | capacity1_ |
| Number of rows (range of first index). More... | |
| int | capacity2_ |
| Number of columns (range of first index). More... | |
| Util::FMatrix< Data, M, N >::FMatrix | ( | ) |
Default constructor.
Definition at line 77 of file FMatrix.h.
References Util::Matrix< Data >::capacity1_, Util::Matrix< Data >::capacity2_, and Util::Matrix< Data >::data_.
| Util::FMatrix< Data, M, N >::FMatrix | ( | const FMatrix< Data, M, N > & | other | ) |
Copy constructor.
Definition at line 89 of file FMatrix.h.
References Util::Matrix< Data >::capacity1_, Util::Matrix< Data >::capacity2_, and Util::Matrix< Data >::data_.
| Util::FMatrix< Data, M, N >::~FMatrix | ( | ) |
| FMatrix< Data, M, N > & Util::FMatrix< Data, M, N >::operator= | ( | const FMatrix< Data, M, N > & | other | ) |
| void Util::FMatrix< Data, M, N >::serialize | ( | Archive & | ar, |
| const unsigned int | version | ||
| ) |
1.8.11