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. More...
 
T *& Tmatrix< T >::_pval (const unsigned int ie)
 Returns a pointer to actual value at position ie. More...
 
void Tmatrix< T >::_reset ()
 Resets the entries in vector _data. More...
 
TTmatrix< T >::_val (const unsigned int ir, const unsigned int ic)
 Returns a reference to actual value at position ie. More...
 
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) More...
 
void Tmatrix< T >::array (const T *pM)
 Sets the elements of a matrix from an array (columnwise storage) More...
 
Tmatrix< T > & Tmatrix< T >::col (const unsigned int ic)
 Sets/retrieves value of column ic. More...
 
unsigned int Tmatrix< T >::col () const
 Retrieves number of columns. More...
 
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) More...
 
void Tmatrix< T >::resize (const unsigned int nr, const unsigned int nc=1, const bool alloc=true)
 Resets the dimension of a Tmatrix objects. More...
 
Tmatrix< T > & Tmatrix< T >::row (const unsigned int ir)
 Sets/retrieves value of row ir. More...
 
unsigned int Tmatrix< T >::row () const
 Retrieves number of rows. More...
 
Tmatrix< unsigned int > Tmatrix< T >::sort ()
 Other operators. More...
 
 Tmatrix< T >::Tmatrix ()
 Default constructor. More...
 
 Tmatrix< T >::Tmatrix (const unsigned int nr, const unsigned int nc=1, const bool alloc=true)
 Constructor doing size assignment. More...
 
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. More...
 
 Tmatrix< T >::Tmatrix (const Tmatrix< T > &M)
 Copy Constructor. More...
 
template<typename U >
 Tmatrix< T >::Tmatrix (const Tmatrix< U > &M)
 Copy Constructor doing type conversion. More...
 
 Tmatrix< T >::~Tmatrix ()
 Destructor. More...
 

Variables

std::vector< T * > Tmatrix< T >::_data
 Vector of pointers to elements (column-wise storage) More...
 
unsigned int Tmatrix< T >::_nc
 Number of columns. More...
 
unsigned int Tmatrix< T >::_nr
 Number of rows. More...
 
Tmatrix< T > * Tmatrix< T >::_pblock
 Pointer to Tmatrix<T> container storing blocks. More...
 
Tmatrix< T > * Tmatrix< T >::_pcol
 Pointer to Tmatrix<T> container storing column. More...
 
Tmatrix< T > * Tmatrix< T >::_prow
 Pointer to Tmatrix<T> container storing row. More...
 
bool Tmatrix< T >::_sub
 Flag indicating whether the current object is a submatrix. More...
 

Detailed Description

Function Documentation

template<typename T >
unsigned int Tmatrix< T >::_digits ( unsigned int  n)
inlinestaticprivate

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)
inlineprivate

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 ( )
inlineprivate

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 
)
inlineprivate

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
inlineprivate

Definition at line 293 of file t_matrix.hpp.

template<typename T >
T & Tmatrix< T >::_val ( const unsigned int  ie)
inlineprivate

Definition at line 300 of file t_matrix.hpp.

template<typename T >
const T & Tmatrix< T >::_val ( const unsigned int  ie) const
inlineprivate

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 Mon Jun 10 2019 12:35:22