namespace ewalena
0.2.15
ewalena is not an acronym
|
#include <include/ewalena/lac/super_matrix.h>
Public Member Functions | |
unsigned int | n_cols () const |
unsigned int | n_rows () const |
ValueType & | operator() (const unsigned int i, const unsigned int j, const unsigned int k, const unsigned int l) |
const ValueType & | operator() (const unsigned int i, const unsigned int j, const unsigned int k, const unsigned int l) const |
void | reinit (const unsigned int p, const unsigned int q, const unsigned int r, const unsigned int s, const bool zero=true) |
void | reinit () |
SuperMatrix () | |
SuperMatrix (const unsigned int p, const unsigned int q, const unsigned int r, const unsigned int s, const bool zero=true) | |
~SuperMatrix () | |
Protected Member Functions | |
const ValueType * | operator* () const |
ValueType * | operator* () |
Private Attributes | |
unsigned int | __n_cols |
unsigned int | __n_rows |
ValueType * | data |
unsigned int | I |
unsigned int | J |
unsigned int | K |
unsigned int | L |
Friends | |
std::ostream & | operator<< (std::ostream &output, const SuperMatrix< ValueType > &M) |
A class that denotes a super matrix with four-index data access,
ewalena::SuperMatrix< ValueType >::SuperMatrix | ( | ) |
Constructor.
ewalena::SuperMatrix< ValueType >::~SuperMatrix | ( | ) |
Destructor.
ewalena::SuperMatrix< ValueType >::SuperMatrix | ( | const unsigned int | p, |
const unsigned int | q, | ||
const unsigned int | r, | ||
const unsigned int | s, | ||
const bool | zero = true |
||
) | [explicit] |
Initialize a super matrix of size m
n
. By default, matrix elements are set to zero otherwise if zero=false
, matrix elements are left in an unspecified state.
unsigned int ewalena::SuperMatrix< ValueType >::n_cols | ( | ) | const [inline] |
Return the number of columns this super matrix has.
unsigned int ewalena::SuperMatrix< ValueType >::n_rows | ( | ) | const [inline] |
Return the number of rows this super matrix has.
ValueType & ewalena::SuperMatrix< ValueType >::operator() | ( | const unsigned int | i, |
const unsigned int | j, | ||
const unsigned int | k, | ||
const unsigned int | l | ||
) | [inline] |
Read-write access to the (i,j,k,l
)th component of this super matrix.
const ValueType & ewalena::SuperMatrix< ValueType >::operator() | ( | const unsigned int | i, |
const unsigned int | j, | ||
const unsigned int | k, | ||
const unsigned int | l | ||
) | const [inline] |
Read only access to the (i,j,k,l
)th index of this matrix.
const ValueType* ewalena::SuperMatrix< ValueType >::operator* | ( | ) | const [inline, protected] |
Read only access operator to the underlying C array structure associated with this matrix.
ValueType* ewalena::SuperMatrix< ValueType >::operator* | ( | ) | [inline, protected] |
Read-write access operator to the underlying C array structure associated with this matrix.
void ewalena::SuperMatrix< ValueType >::reinit | ( | const unsigned int | p, |
const unsigned int | q, | ||
const unsigned int | r, | ||
const unsigned int | s, | ||
const bool | zero = true |
||
) |
Reinitialise this super matrix to size p
, q
, r
, s
.
void ewalena::SuperMatrix< ValueType >::reinit | ( | ) |
Reinit the contents of this super matrix effectively clearing it.
std::ostream& operator<< | ( | std::ostream & | output, |
const SuperMatrix< ValueType > & | M | ||
) | [friend] |
Output operator to stream.
unsigned int ewalena::SuperMatrix< ValueType >::__n_cols [private] |
Internal reference to this matrix column size, ie. the number of columns this matrix has.
unsigned int ewalena::SuperMatrix< ValueType >::__n_rows [private] |
Internal reference to this matrix row-size, ie. the number of rows this matrix has.
ValueType* ewalena::SuperMatrix< ValueType >::data [private] |
Internal object denoting this matrix data.
unsigned int ewalena::SuperMatrix< ValueType >::I [private] |
unsigned int ewalena::SuperMatrix< ValueType >::J [private] |
unsigned int ewalena::SuperMatrix< ValueType >::K [private] |
unsigned int ewalena::SuperMatrix< ValueType >::L [private] |