MDA
|
A simple class to contain a set of 2 dimensional matrices. More...
#include <MatrixStack.hpp>
Public Member Functions | |
MatrixStack () | |
Default constructor. | |
MatrixStack (size_t dim1, size_t dim2) | |
Initializes the Stack with the given sizes. More... | |
MatrixStack (const MatrixStack &)=default | |
The copy constructor. More... | |
MatrixStack (MatrixStack &&)=default | |
The move constructor. More... | |
MatrixStack & | operator= (const MatrixStack &)=default |
Copy assignment operator. More... | |
MatrixStack & | operator= (MatrixStack &&)=default |
Move assignment operator. More... | |
Matrix< DataType > & | operator[] (unsigned int index) |
Access operator. More... | |
const Matrix< DataType > & | operator[] (unsigned int index) const |
Access operator. More... | |
size_t | dim1 () |
Returns size of the first dimension. More... | |
size_t | dim2 () |
Returns size of the second dimension. More... | |
void | resize (size_t new_size1, size_t new_size2) |
Resizes all matrices in the stack. More... | |
void | ensure (size_t new_size1, size_t new_size2) |
Will make sure that the matrix is at least of this size. More... | |
void | fill (const DataType &value) |
Fills all matrixes with the same value. More... | |
A simple class to contain a set of 2 dimensional matrices.
n | The number of matrices |
DataType | The type of data to be stored in the matrices. |
|
inline |
Initializes the Stack with the given sizes.
dim1 | Size of the first dimension. |
dim2 | Size of the second dimension. |
|
default |
The copy constructor.
The | object to copy. |
|
default |
The move constructor.
The | object to move. |
|
inline |
Returns size of the first dimension.
|
inline |
Returns size of the second dimension.
|
inline |
Will make sure that the matrix is at least of this size.
new_size1 | The new size of dimension 1. |
new_size2 | The new size of dimension 2. |
|
inline |
Fills all matrixes with the same value.
value | The value to be used for the filling. |
|
default |
Copy assignment operator.
The | object to copy. |
|
default |
Move assignment operator.
The | object to move. |
|
inline |
Access operator.
index | The index to acess. |
|
inline |
Access operator.
index | The index to acess. |
|
inline |
Resizes all matrices in the stack.
new_size1 | The new size of the first dimension. |
new_size2 | The new size of the second dimension. |