Functions | |
static unsigned int | Tmatrix< T >::_digits (unsigned int n) |
Returns the number of digits of an unsigned int value. | |
T *& | Tmatrix< T >::_pval (const unsigned int ie) |
Returns a pointer to actual value at position ie. | |
void | Tmatrix< T >::_reset () |
Resets the entries in vector _data. | |
T & | Tmatrix< T >::_val (const unsigned int ir, const unsigned int ic) |
Returns a reference to actual value at position ie. | |
const T & | Tmatrix< T >::_val (const unsigned int ir, const unsigned int ic) const |
T & | Tmatrix< T >::_val (const unsigned int ie) |
const T & | Tmatrix< T >::_val (const unsigned int ie) const |
T * | Tmatrix< T >::array () const |
Converts a matrix into array form (columnwise storage) | |
void | Tmatrix< T >::array (const T *pM) |
Sets the elements of a matrix from an array (columnwise storage) | |
Tmatrix< T > & | Tmatrix< T >::col (const unsigned int ic) |
Sets/retrieves value of column ic. | |
unsigned int | Tmatrix< T >::col () const |
Retrieves number of columns. | |
unsigned int | Tmatrix< T >::getDim () const |
unsigned int | Tmatrix< T >::getNumCols () const |
unsigned int | Tmatrix< T >::getNumRows () const |
T & | Tmatrix< T >::operator() (const unsigned int ir, const unsigned int ic) |
const T & | Tmatrix< T >::operator() (const unsigned int ir, const unsigned int ic) const |
T & | Tmatrix< T >::operator() (const unsigned int ie) |
const T & | Tmatrix< T >::operator() (const unsigned int ie) const |
template<typename U > | |
Tmatrix< T > & | Tmatrix< T >::operator*= (const Tmatrix< U > &M) |
template<typename U > | |
Tmatrix< T > & | Tmatrix< T >::operator*= (const U &m) |
template<typename U > | |
Tmatrix< T > & | Tmatrix< T >::operator+= (const Tmatrix< U > &M) |
template<typename U > | |
Tmatrix< T > & | Tmatrix< T >::operator+= (const U &m) |
template<typename U > | |
Tmatrix< T > & | Tmatrix< T >::operator-= (const Tmatrix< U > &M) |
template<typename U > | |
Tmatrix< T > & | Tmatrix< T >::operator-= (const U &m) |
template<typename U > | |
Tmatrix< T > & | Tmatrix< T >::operator/= (const U &m) |
Tmatrix< T > & | Tmatrix< T >::operator= (const Tmatrix< T > &M) |
Tmatrix< T > & | Tmatrix< T >::operator= (const T &m) |
T *& | Tmatrix< T >::pval (const unsigned int ir, const unsigned int ic) |
Sets/retrieves pointer to entry (ir,ic) | |
void | Tmatrix< T >::resize (const unsigned int nr, const unsigned int nc=1, const bool alloc=true) |
Resets the dimension of a Tmatrix objects. | |
Tmatrix< T > & | Tmatrix< T >::row (const unsigned int ir) |
Sets/retrieves value of row ir. | |
unsigned int | Tmatrix< T >::row () const |
Retrieves number of rows. | |
Tmatrix< unsigned int > | Tmatrix< T >::sort () |
Other operators. | |
Tmatrix< T >::Tmatrix () | |
Default constructor. | |
Tmatrix< T >::Tmatrix (const unsigned int nr, const unsigned int nc=1, const bool alloc=true) | |
Constructor doing size assignment. | |
template<typename U > | |
Tmatrix< T >::Tmatrix (const unsigned int nr, const unsigned int nc, const U &v, const bool alloc=true) | |
Constructor doing size assignment and element initialization. | |
Tmatrix< T >::Tmatrix (const Tmatrix< T > &M) | |
Copy Constructor. | |
template<typename U > | |
Tmatrix< T >::Tmatrix (const Tmatrix< U > &M) | |
Copy Constructor doing type conversion. | |
Tmatrix< T >::~Tmatrix () | |
Destructor. | |
Variables | |
std::vector< T * > | Tmatrix< T >::_data |
Vector of pointers to elements (column-wise storage) | |
unsigned int | Tmatrix< T >::_nc |
Number of columns. | |
unsigned int | Tmatrix< T >::_nr |
Number of rows. | |
Tmatrix< T > * | Tmatrix< T >::_pblock |
Pointer to Tmatrix<T> container storing blocks. | |
Tmatrix< T > * | Tmatrix< T >::_pcol |
Pointer to Tmatrix<T> container storing column. | |
Tmatrix< T > * | Tmatrix< T >::_prow |
Pointer to Tmatrix<T> container storing row. | |
bool | Tmatrix< T >::_sub |
Flag indicating whether the current object is a submatrix. |
unsigned int Tmatrix< T >::_digits | ( | unsigned int | n | ) | [inline, static, private] |
Returns the number of digits of an unsigned int value.
Definition at line 609 of file t_matrix.hpp.
Returns a pointer to actual value at position ie.
Definition at line 323 of file t_matrix.hpp.
Resets the entries in vector _data.
Definition at line 330 of file t_matrix.hpp.
T & Tmatrix< T >::_val | ( | const unsigned int | ir, |
const unsigned int | ic | ||
) | [inline, private] |
Returns a reference to actual value at position ie.
Definition at line 286 of file t_matrix.hpp.
const T & Tmatrix< T >::_val | ( | const unsigned int | ir, |
const unsigned int | ic | ||
) | const [inline, private] |
Definition at line 293 of file t_matrix.hpp.
Definition at line 300 of file t_matrix.hpp.
Definition at line 308 of file t_matrix.hpp.
Converts a matrix into array form (columnwise storage)
Definition at line 588 of file t_matrix.hpp.
Sets the elements of a matrix from an array (columnwise storage)
Definition at line 599 of file t_matrix.hpp.
Sets/retrieves value of column ic.
Definition at line 338 of file t_matrix.hpp.
Retrieves number of columns.
Definition at line 173 of file t_matrix.hpp.
Definition at line 184 of file t_matrix.hpp.
Definition at line 186 of file t_matrix.hpp.
Definition at line 185 of file t_matrix.hpp.
T & Tmatrix< T >::operator() | ( | const unsigned int | ir, |
const unsigned int | ic | ||
) | [inline] |
Definition at line 258 of file t_matrix.hpp.
const T & Tmatrix< T >::operator() | ( | const unsigned int | ir, |
const unsigned int | ic | ||
) | const [inline] |
Definition at line 265 of file t_matrix.hpp.
Definition at line 272 of file t_matrix.hpp.
Definition at line 279 of file t_matrix.hpp.
Tmatrix< T > & Tmatrix< T >::operator*= | ( | const Tmatrix< U > & | M | ) | [inline] |
Definition at line 436 of file t_matrix.hpp.
Tmatrix< T > & Tmatrix< T >::operator*= | ( | const U & | m | ) | [inline] |
Definition at line 453 of file t_matrix.hpp.
Tmatrix< T > & Tmatrix< T >::operator+= | ( | const Tmatrix< U > & | M | ) | [inline] |
Definition at line 398 of file t_matrix.hpp.
Tmatrix< T > & Tmatrix< T >::operator+= | ( | const U & | m | ) | [inline] |
Definition at line 408 of file t_matrix.hpp.
Tmatrix< T > & Tmatrix< T >::operator-= | ( | const Tmatrix< U > & | M | ) | [inline] |
Definition at line 417 of file t_matrix.hpp.
Tmatrix< T > & Tmatrix< T >::operator-= | ( | const U & | m | ) | [inline] |
Definition at line 427 of file t_matrix.hpp.
Tmatrix< T > & Tmatrix< T >::operator/= | ( | const U & | m | ) | [inline] |
Definition at line 462 of file t_matrix.hpp.
Definition at line 376 of file t_matrix.hpp.
Definition at line 388 of file t_matrix.hpp.
T *& Tmatrix< T >::pval | ( | const unsigned int | ir, |
const unsigned int | ic | ||
) | [inline] |
Sets/retrieves pointer to entry (ir,ic)
Definition at line 316 of file t_matrix.hpp.
void Tmatrix< T >::resize | ( | const unsigned int | nr, |
const unsigned int | nc = 1 , |
||
const bool | alloc = true |
||
) | [inline] |
Resets the dimension of a Tmatrix objects.
Definition at line 149 of file t_matrix.hpp.
Sets/retrieves value of row ir.
Definition at line 357 of file t_matrix.hpp.
Retrieves number of rows.
Definition at line 176 of file t_matrix.hpp.
Default constructor.
Definition at line 90 of file t_matrix.hpp.
Tmatrix< T >::Tmatrix | ( | const unsigned int | nr, |
const unsigned int | nc = 1 , |
||
const bool | alloc = true |
||
) | [inline] |
Constructor doing size assignment.
Definition at line 95 of file t_matrix.hpp.
Tmatrix< T >::Tmatrix | ( | const unsigned int | nr, |
const unsigned int | nc, | ||
const U & | v, | ||
const bool | alloc = true |
||
) | [inline] |
Constructor doing size assignment and element initialization.
Definition at line 106 of file t_matrix.hpp.
Copy Constructor.
Definition at line 118 of file t_matrix.hpp.
Copy Constructor doing type conversion.
Definition at line 129 of file t_matrix.hpp.
Destructor.
Definition at line 139 of file t_matrix.hpp.
Vector of pointers to elements (column-wise storage)
Definition at line 225 of file t_matrix.hpp.
Number of columns.
Definition at line 223 of file t_matrix.hpp.
Number of rows.
Definition at line 221 of file t_matrix.hpp.
Pointer to Tmatrix<T> container storing blocks.
Definition at line 233 of file t_matrix.hpp.
Pointer to Tmatrix<T> container storing column.
Definition at line 229 of file t_matrix.hpp.
Pointer to Tmatrix<T> container storing row.
Definition at line 231 of file t_matrix.hpp.
Flag indicating whether the current object is a submatrix.
Definition at line 227 of file t_matrix.hpp.