OpenWalnut
1.5.0dev
|
A data store with the specified dimensions and type. More...
#include <WMatrixFixed.h>
Public Member Functions | |
ValueT & | operator() (size_t row, size_t col) throw () |
Returns a reference to the component of a row and column in order to provide access to the component. More... | |
const ValueT & | operator() (size_t row, size_t col) const throw () |
Returns a const reference to the component of an row and column in order to provide access to the component. More... | |
template<typename RHSValueT , ValueStoreTemplate RHSValueStoreT> | |
ValueStore< ValueT, Rows, Cols > & | operator= (RHSValueStoreT< RHSValueT, Rows, Cols > const &rhs) |
Replaces the values in this array. More... | |
Private Attributes | |
ValueT | m_values [Rows *Cols] |
The value array. More... | |
Friends | |
class | WMatrixFixedTest |
the test is a friend More... | |
A data store with the specified dimensions and type.
The possibilities are endless. This way, you can optimize data storage for certain kinds of matrices, like sparse or symmetric ones. It even allows the definition of a whole data block containing many matrices.
ValueT | the integral type |
Rows | the number of rows |
Cols | the number of cols |
Definition at line 75 of file WMatrixFixed.h.
|
inline |
Returns a reference to the component of a row and column in order to provide access to the component.
It does not check for validity of the indices.
row | the row, staring with 0 |
col | the column, starting with 0 |
Definition at line 89 of file WMatrixFixed.h.
References ValueStore< ValueT, Rows, Cols >::m_values.
Referenced by ValueStore< ValueT, Rows, Cols >::operator=().
|
inline |
Returns a const reference to the component of an row and column in order to provide access to the component.
It does not check for validity of the indices.
row | the row, staring with 0 |
col | the column, starting with 0 |
Definition at line 103 of file WMatrixFixed.h.
References ValueStore< ValueT, Rows, Cols >::m_values.
|
inline |
Replaces the values in this array.
RHSValueT | the value type. This is casted to ValueT. |
RHSValueStoreT | The value store given |
rhs | the values to set. |
Definition at line 118 of file WMatrixFixed.h.
References ValueStore< ValueT, Rows, Cols >::operator()().
|
friend |
the test is a friend
Definition at line 78 of file WMatrixFixed.h.
|
private |
The value array.
Stored row-major. Never access this directly. Always use operator(). This allows us to later-on use another storing order.
Definition at line 134 of file WMatrixFixed.h.
Referenced by ValueStore< ValueT, Rows, Cols >::operator()().