MDA
|
A simple class to produce 2 dimensional matrices. More...
#include <Matrix1Line.hpp>
Public Types | |
typedef DataType | value_type |
Public Member Functions | |
Matrix1Line (size_t dim1, size_t dim2) | |
Constructor setting the size. More... | |
Matrix1Line (size_t dim1, size_t dim2, DataType init) | |
Constructor allowing initialization of fields. More... | |
virtual | ~Matrix1Line () |
Destructor. | |
DataType * | operator[] (unsigned int index) |
Access operator. More... | |
DataType * | operator[] (unsigned int index) const |
Access operator. More... | |
std::vector< DataType >::iterator | begin (size_t id) |
std::vector< DataType >::iterator | end (size_t id) |
void | resize (size_t dim_1, size_t dim_2) |
Resizes the matrix to the new dimensions. More... | |
size_t | dim1 () const |
Returns the size of the first dimension. More... | |
size_t | size () const |
size_t | dim2 () const |
Returns the size of the second dimension. More... | |
void | fill (const DataType &value) |
A simple class to produce 2 dimensional matrices.
MDAT::Matrix1Line< DataType >::Matrix1Line | ( | size_t | dim1, |
size_t | dim2 | ||
) |
Constructor setting the size.
dim1 | Size of the first dimension. |
dim2 | Size of the second dimension. |
MDAT::Matrix1Line< DataType >::Matrix1Line | ( | size_t | dim1, |
size_t | dim2, | ||
DataType | init | ||
) |
Constructor allowing initialization of fields.
dim1 | Size of the first dimension. |
dim2 | Size of the second dimension. |
init | Value to initalize the fields with. |
|
inline |
Returns the size of the first dimension.
|
inline |
Returns the size of the second dimension.
|
inline |
Access operator.
index | The index to acess. |
|
inline |
Access operator.
index | The index to acess. |
|
inline |
Resizes the matrix to the new dimensions.
dim_1 | The first dimension |
dim_2 | The second diemension |