Class for fixed-size matrix storing NROW x NCOL objects of type T. More...
#include <fixed_size_vector.h>
Public Member Functions | |
| FixedSizeMatrix () | |
| Default constructor. | |
| FixedSizeMatrix (const T &value) | |
| Construct and fill all entries with specified value. | |
| void | fill (const T &value) |
| Fill all entries with specified value. | |
| unsigned | nrow () const |
| Number of rows. | |
| unsigned | ncol () const |
| Number of columns. | |
| T & | operator() (const unsigned &i, const unsigned &j) |
| Read/write access to (i,j)-th entry. | |
| const T & | operator() (const unsigned &i, const unsigned &j) const |
| Read access to (i,j)-th entry. | |
| void | initialise (const T &value) |
| Fill all entries with specified value. | |
Private Attributes | |
| T | Data [NROW *NCOL] |
| Matrix entries stored in row-major order. | |
Class for fixed-size matrix storing NROW x NCOL objects of type T.
No resize or other STL functionality but therefore much less run-time overhead.
Storage is row-major:
(0,0), (0,1), ..., (0,NCOL-1), (1,0), (1,1), ..., (1,NCOL-1), ... (NROW-1,NCOL-1)
Definition at line 166 of file fixed_size_vector.h.
|
inline |
Default constructor.
Definition at line 170 of file fixed_size_vector.h.
|
inline |
Construct and fill all entries with specified value.
Definition at line 173 of file fixed_size_vector.h.
References oomph::FixedSizeMatrix< T, NROW, NCOL >::fill().
|
inline |
Fill all entries with specified value.
Definition at line 181 of file fixed_size_vector.h.
References i.
Referenced by oomph::FixedSizeMatrix< T, NROW, NCOL >::FixedSizeMatrix().
|
inline |
Fill all entries with specified value.
Definition at line 246 of file fixed_size_vector.h.
References i.
|
inline |
Number of columns.
Definition at line 196 of file fixed_size_vector.h.
|
inline |
Number of rows.
Definition at line 190 of file fixed_size_vector.h.
|
inline |
Read/write access to (i,j)-th entry.
Definition at line 202 of file fixed_size_vector.h.
References i.
|
private |
Matrix entries stored in row-major order.
Definition at line 256 of file fixed_size_vector.h.