#include <element.hh>
Public Types | |
typedef F | value_type |
Public Member Functions | |
ElementMatrixBase () | |
uint | m () const |
Returns the number of rows. | |
uint | n () const |
Returns the number of columns. | |
const F & | operator() (const uint i, const uint j) const |
Returns element (i, j) | |
uint | size () const |
Returns the number of entries in the matrix. | |
operator const F * () const | |
Returns a pointer to the data array. | |
const Array< F > & | getData () const |
Returns the data array | |
bool | isTranspose () const |
bool | storeMatlab (const std::string filename, std::string name="", bool append=false) const |
Protected Attributes | |
Array< F > | data_ |
Data. | |
uint | m_ |
Number of rows. | |
uint | n_ |
Number of columns. | |
bool | t_ |
Transpose. | |
Base class for element matrices.
The class has only constant methods. Active methods have to be defined in derived classes.
Definition at line 139 of file element.hh.
typedef F concepts::ElementMatrixBase< F >::value_type |
Definition at line 141 of file element.hh.
|
inline |
Constructor.
Initializes an empty matrix which is not transposed, which correspond to row-major storage order.
Definition at line 148 of file element.hh.
|
inline |
Returns the data array
Definition at line 172 of file element.hh.
|
inline |
Returns true if the matrix is internally stored as transposed (column-major).
Definition at line 177 of file element.hh.
|
inline |
Returns the number of rows.
Definition at line 151 of file element.hh.
|
inline |
Returns the number of columns.
Definition at line 153 of file element.hh.
|
inline |
Returns a pointer to the data array.
Definition at line 169 of file element.hh.
|
inline |
Returns element (i, j)
Definition at line 156 of file element.hh.
|
inline |
Returns the number of entries in the matrix.
Definition at line 166 of file element.hh.
bool concepts::ElementMatrixBase< F >::storeMatlab | ( | const std::string | filename, |
std::string | name = "" , |
||
bool | append = false |
||
) | const |
Stores the matrix in a Matlab matrix
filename | name of the matlab file, with ending '.m' |
name | name of the variable, e.g. "A" |
append | if false, create new file, otherwise append to it |
|
protected |
Data.
Definition at line 189 of file element.hh.
|
protected |
Number of rows.
Definition at line 191 of file element.hh.
|
protected |
Number of columns.
Definition at line 193 of file element.hh.
|
protected |
Definition at line 195 of file element.hh.