Functions | Variables
Tmatrix Computations with Arbitrary Types

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.
TTmatrix< T >::_val (const unsigned int ir, const unsigned int ic)
 Returns a reference to actual value at position ie.
const TTmatrix< T >::_val (const unsigned int ir, const unsigned int ic) const
TTmatrix< T >::_val (const unsigned int ie)
const TTmatrix< T >::_val (const unsigned int ie) const
TTmatrix< 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
TTmatrix< T >::operator() (const unsigned int ir, const unsigned int ic)
const TTmatrix< T >::operator() (const unsigned int ir, const unsigned int ic) const
TTmatrix< T >::operator() (const unsigned int ie)
const TTmatrix< 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.

Function Documentation

template<typename T >
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.

template<typename T >
T *& Tmatrix< T >::_pval ( const unsigned int  ie) [inline, private]

Returns a pointer to actual value at position ie.

Definition at line 323 of file t_matrix.hpp.

template<typename T >
void Tmatrix< T >::_reset ( ) [inline, private]

Resets the entries in vector _data.

Definition at line 330 of file t_matrix.hpp.

template<typename T >
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.

template<typename T >
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.

template<typename T >
T & Tmatrix< T >::_val ( const unsigned int  ie) [inline, private]

Definition at line 300 of file t_matrix.hpp.

template<typename T >
const T & Tmatrix< T >::_val ( const unsigned int  ie) const [inline, private]

Definition at line 308 of file t_matrix.hpp.

template<typename T >
T * Tmatrix< T >::array ( ) const [inline]

Converts a matrix into array form (columnwise storage)

Definition at line 588 of file t_matrix.hpp.

template<typename T>
void Tmatrix< T >::array ( const T pM) [inline]

Sets the elements of a matrix from an array (columnwise storage)

Definition at line 599 of file t_matrix.hpp.

template<typename T >
Tmatrix< T > & Tmatrix< T >::col ( const unsigned int  ic) [inline]

Sets/retrieves value of column ic.

Definition at line 338 of file t_matrix.hpp.

template<typename T>
unsigned int Tmatrix< T >::col ( ) const [inline]

Retrieves number of columns.

Definition at line 173 of file t_matrix.hpp.

template<typename T>
unsigned int Tmatrix< T >::getDim ( ) const [inline]

Definition at line 184 of file t_matrix.hpp.

template<typename T>
unsigned int Tmatrix< T >::getNumCols ( ) const [inline]

Definition at line 186 of file t_matrix.hpp.

template<typename T>
unsigned int Tmatrix< T >::getNumRows ( ) const [inline]

Definition at line 185 of file t_matrix.hpp.

template<typename T >
T & Tmatrix< T >::operator() ( const unsigned int  ir,
const unsigned int  ic 
) [inline]

Definition at line 258 of file t_matrix.hpp.

template<typename T >
const T & Tmatrix< T >::operator() ( const unsigned int  ir,
const unsigned int  ic 
) const [inline]

Definition at line 265 of file t_matrix.hpp.

template<typename T >
T & Tmatrix< T >::operator() ( const unsigned int  ie) [inline]

Definition at line 272 of file t_matrix.hpp.

template<typename T >
const T & Tmatrix< T >::operator() ( const unsigned int  ie) const [inline]

Definition at line 279 of file t_matrix.hpp.

template<typename T >
template<typename U >
Tmatrix< T > & Tmatrix< T >::operator*= ( const Tmatrix< U > &  M) [inline]

Definition at line 436 of file t_matrix.hpp.

template<typename T >
template<typename U >
Tmatrix< T > & Tmatrix< T >::operator*= ( const U m) [inline]

Definition at line 453 of file t_matrix.hpp.

template<typename T >
template<typename U >
Tmatrix< T > & Tmatrix< T >::operator+= ( const Tmatrix< U > &  M) [inline]

Definition at line 398 of file t_matrix.hpp.

template<typename T >
template<typename U >
Tmatrix< T > & Tmatrix< T >::operator+= ( const U m) [inline]

Definition at line 408 of file t_matrix.hpp.

template<typename T >
template<typename U >
Tmatrix< T > & Tmatrix< T >::operator-= ( const Tmatrix< U > &  M) [inline]

Definition at line 417 of file t_matrix.hpp.

template<typename T >
template<typename U >
Tmatrix< T > & Tmatrix< T >::operator-= ( const U m) [inline]

Definition at line 427 of file t_matrix.hpp.

template<typename T >
template<typename U >
Tmatrix< T > & Tmatrix< T >::operator/= ( const U m) [inline]

Definition at line 462 of file t_matrix.hpp.

template<typename T>
Tmatrix< T > & Tmatrix< T >::operator= ( const Tmatrix< T > &  M) [inline]

Definition at line 376 of file t_matrix.hpp.

template<typename T>
Tmatrix< T > & Tmatrix< T >::operator= ( const T m) [inline]

Definition at line 388 of file t_matrix.hpp.

template<typename T >
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.

template<typename T>
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.

template<typename T >
Tmatrix< T > & Tmatrix< T >::row ( const unsigned int  ir) [inline]

Sets/retrieves value of row ir.

Definition at line 357 of file t_matrix.hpp.

template<typename T>
unsigned int Tmatrix< T >::row ( ) const [inline]

Retrieves number of rows.

Definition at line 176 of file t_matrix.hpp.

template<typename T>
Tmatrix<unsigned int> Tmatrix< T >::sort ( )

Other operators.

template<typename T>
Tmatrix< T >::Tmatrix ( ) [inline]

Default constructor.

Definition at line 90 of file t_matrix.hpp.

template<typename T>
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.

template<typename T>
template<typename U >
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.

template<typename T>
Tmatrix< T >::Tmatrix ( const Tmatrix< T > &  M) [inline]

Copy Constructor.

Definition at line 118 of file t_matrix.hpp.

template<typename T>
template<typename U >
Tmatrix< T >::Tmatrix ( const Tmatrix< U > &  M) [inline]

Copy Constructor doing type conversion.

Definition at line 129 of file t_matrix.hpp.

template<typename T>
Tmatrix< T >::~Tmatrix ( ) [inline]

Destructor.

Definition at line 139 of file t_matrix.hpp.


Variable Documentation

template<typename T>
std::vector<T*> Tmatrix< T >::_data [private]

Vector of pointers to elements (column-wise storage)

Definition at line 225 of file t_matrix.hpp.

template<typename T>
unsigned int Tmatrix< T >::_nc [private]

Number of columns.

Definition at line 223 of file t_matrix.hpp.

template<typename T>
unsigned int Tmatrix< T >::_nr [private]

Number of rows.

Definition at line 221 of file t_matrix.hpp.

template<typename T>
Tmatrix<T>* Tmatrix< T >::_pblock [private]

Pointer to Tmatrix<T> container storing blocks.

Definition at line 233 of file t_matrix.hpp.

template<typename T>
Tmatrix<T>* Tmatrix< T >::_pcol [private]

Pointer to Tmatrix<T> container storing column.

Definition at line 229 of file t_matrix.hpp.

template<typename T>
Tmatrix<T>* Tmatrix< T >::_prow [private]

Pointer to Tmatrix<T> container storing row.

Definition at line 231 of file t_matrix.hpp.

template<typename T>
bool Tmatrix< T >::_sub [private]

Flag indicating whether the current object is a submatrix.

Definition at line 227 of file t_matrix.hpp.



acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Thu Aug 27 2015 12:01:37