MULTIBODY SIMULATION SOFTWARE - API documentation

chrono::ChMatrixDynamic< Real > Class Template Reference

#include <CHmatrix.h>

Inheritance diagram for chrono::ChMatrixDynamic< Real >:

Inheritance graph
[legend]
Collaboration diagram for chrono::ChMatrixDynamic< Real >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ChMatrixDynamic ()
 ChMatrixDynamic (const ChMatrixDynamic< Real > &msource)
template<class RealB>
 ChMatrixDynamic (const ChMatrix< RealB > &msource)
 ChMatrixDynamic (const int row, const int col)
virtual ~ChMatrixDynamic ()
ChMatrixDynamic< Real > & operator= (const ChMatrix< Real > &matbis)
ChMatrixDynamic< Real > operator- ()
template<class RealB>
ChMatrixDynamic< Real > operator+ (const ChMatrix< RealB > &matbis)
template<class RealB>
ChMatrixDynamic< Real > operator- (const ChMatrix< RealB > &matbis)
template<class RealB>
ChMatrixDynamic< Real > operator * (const ChMatrix< RealB > &matbis)
ChMatrixDynamic< Real > operator * (const Real factor)
virtual void Resize (int nrows, int ncols)


Detailed Description

template<class Real>
class chrono::ChMatrixDynamic< Real >

ChMatrixDynamic

Specialized 'resizeable' matrix class where the elements are allocated on heap. The size of the matrix can be known even at compile-time, and the matrix can be freely resized also after creation. The size is unlimited (until you have memory). Although this is the most generic type of matrix, please do not use it where you know in advance its size because there are more efficient types for those matrices with 'static' size (for example, 3x3 rotation matrices are faster if created as ChMatrix33).


Constructor & Destructor Documentation

template<class Real>
chrono::ChMatrixDynamic< Real >::ChMatrixDynamic (  ) 

[simply use the "Real* address" pointer of the base class

The default constructor builds a 3x3 matrix,

template<class Real>
chrono::ChMatrixDynamic< Real >::ChMatrixDynamic ( const ChMatrixDynamic< Real > &  msource  ) 

Copy constructor.

template<class Real>
template<class RealB>
chrono::ChMatrixDynamic< Real >::ChMatrixDynamic ( const ChMatrix< RealB > &  msource  ) 

Copy constructor from all types of base matrices.

template<class Real>
chrono::ChMatrixDynamic< Real >::ChMatrixDynamic ( const int  row,
const int  col 
)

The constructor for a generic nxm matrix. Rows and columns cannot be zero or negative.

template<class Real>
virtual chrono::ChMatrixDynamic< Real >::~ChMatrixDynamic (  )  [virtual]

Destructor Delete allocated heap mem.


Member Function Documentation

template<class Real>
ChMatrixDynamic<Real>& chrono::ChMatrixDynamic< Real >::operator= ( const ChMatrix< Real > &  matbis  ) 

Assignment operator (from generic other matrix, it always work).

Reimplemented from chrono::ChMatrix< Real >.

template<class Real>
ChMatrixDynamic<Real> chrono::ChMatrixDynamic< Real >::operator- (  ) 

Negates sign of the matrix. Performance warning: a new object is created.

template<class Real>
template<class RealB>
ChMatrixDynamic<Real> chrono::ChMatrixDynamic< Real >::operator+ ( const ChMatrix< RealB > &  matbis  ) 

Sums this matrix and another matrix. Performance warning: a new object is created.

template<class Real>
template<class RealB>
ChMatrixDynamic<Real> chrono::ChMatrixDynamic< Real >::operator- ( const ChMatrix< RealB > &  matbis  ) 

Subtracts this matrix and another matrix. Performance warning: a new object is created.

template<class Real>
template<class RealB>
ChMatrixDynamic<Real> chrono::ChMatrixDynamic< Real >::operator * ( const ChMatrix< RealB > &  matbis  ) 

Multiplies this matrix and another matrix. Performance warning: a new object is created.

template<class Real>
ChMatrixDynamic<Real> chrono::ChMatrixDynamic< Real >::operator * ( const Real  factor  ) 

Multiplies this matrix by a scalar value. Performance warning: a new object is created.

template<class Real>
virtual void chrono::ChMatrixDynamic< Real >::Resize ( int  nrows,
int  ncols 
) [virtual]

Reallocate memory for a new size.

Implements chrono::ChMatrix< Real >.


CHRONO::ENGINE
C++ library for multibody simulation, (C) Alessandro Tasora
This API documentation has been generated on 17 Jul 2009 by Doxygen