Jafar
|
Definition at line 16 of file matofmat.hpp.
Public Types | |
typedef boost::numeric::ublas::bounded_matrix < T, M, N > & | reference |
typedef const boost::numeric::ublas::bounded_matrix < T, M, N > & | const_reference |
Public Member Functions | |
matofmat (int nbr_, int nbc_) | |
Constructor 1 : allocate memory for dense matrix of matrix. | |
matofmat (jblas::bool_mat const &matvis_) | |
Constructor 2 : allocate memory for sparse matrix of matrix. | |
matofmat (const matofmat &mom) | |
Constructeur by recopy. | |
~matofmat () | |
Destructor. | |
void | exportFullMatrix (jblas::mat &MatM) |
bool | isSparse () const |
Return true if MoM is sparse. | |
unsigned int | size1 () const |
Return number of rows. | |
unsigned int | size2 () const |
Return number of columns. | |
unsigned int | capacity () const |
Return capacity = number of non zero elements. | |
void | getIndexTab (unsigned int *tab) const |
void | getIndexTab2 (unsigned int **tab) const |
Return the index tab. | |
void | assign (jblas::mat const Mat, unsigned int i, unsigned int j) |
void | add (jblas::mat const Mat, unsigned int i, unsigned int j) |
reference | operator() (unsigned int i, unsigned int j) |
Accessor for an element of MoM. | |
const_reference | operator() (unsigned int i, unsigned int j) const |
Accessor for a constant element of MoM. | |
void | clear () |
Private Attributes | |
unsigned int * | indextab |
The index table is used to retrieve in the data vector the matrix corresponding to (i,j)th element. | |
unsigned int | nbnze |
Number of non nzero elements (an element = one matrix) | |
bool | isSparse_ |
Indicator for sparse matrix. | |
unsigned int | nbc |
number of columns | |
unsigned int | nbr |
std::vector< typename ublas::bounded_matrix< T, M, N > > | data |
The container used to store the data. |
jafar::jmath::matofmat< T, M, N >::matofmat | ( | int | nbr_, |
int | nbc_ | ||
) | [inline] |
Constructor 1 : allocate memory for dense matrix of matrix.
User gives size of the container
Definition at line 58 of file matofmat.hpp.
jafar::jmath::matofmat< T, M, N >::matofmat | ( | jblas::bool_mat const & | matvis_ | ) | [inline] |
Constructor 2 : allocate memory for sparse matrix of matrix.
User gives an matrix of visibility (matrix of boolean).
Definition at line 82 of file matofmat.hpp.
void jafar::jmath::matofmat< T, M, N >::getIndexTab2 | ( | unsigned int ** | tab | ) | const [inline] |
unsigned int* jafar::jmath::matofmat< T, M, N >::indextab [private] |
The index table is used to retrieve in the data vector the matrix corresponding to (i,j)th element.
Very useful for sparse matrix of matrix
Definition at line 22 of file matofmat.hpp.
Referenced by jafar::jmath::matofmat< double, 2, 6 >::matofmat(), and jafar::jmath::matofmat< double, 2, 6 >::~matofmat().
Generated on Wed Oct 15 2014 00:37:40 for Jafar by doxygen 1.7.6.1 |