|
MULTIBODY SIMULATION SOFTWARE - API documentation |
#include <CHmatrix.h>


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) |
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).
| chrono::ChMatrixDynamic< Real >::ChMatrixDynamic | ( | ) |
[simply use the "Real* address" pointer of the base class
The default constructor builds a 3x3 matrix,
| chrono::ChMatrixDynamic< Real >::ChMatrixDynamic | ( | const ChMatrixDynamic< Real > & | msource | ) |
Copy constructor.
| chrono::ChMatrixDynamic< Real >::ChMatrixDynamic | ( | const ChMatrix< RealB > & | msource | ) |
Copy constructor from all types of base matrices.
| 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.
| virtual chrono::ChMatrixDynamic< Real >::~ChMatrixDynamic | ( | ) | [virtual] |
Destructor Delete allocated heap mem.
| ChMatrixDynamic<Real>& chrono::ChMatrixDynamic< Real >::operator= | ( | const ChMatrix< Real > & | matbis | ) |
Assignment operator (from generic other matrix, it always work).
Reimplemented from chrono::ChMatrix< Real >.
| ChMatrixDynamic<Real> chrono::ChMatrixDynamic< Real >::operator- | ( | ) |
Negates sign of the matrix. Performance warning: a new object is created.
| ChMatrixDynamic<Real> chrono::ChMatrixDynamic< Real >::operator+ | ( | const ChMatrix< RealB > & | matbis | ) |
Sums this matrix and another matrix. Performance warning: a new object is created.
| ChMatrixDynamic<Real> chrono::ChMatrixDynamic< Real >::operator- | ( | const ChMatrix< RealB > & | matbis | ) |
Subtracts this matrix and another matrix. Performance warning: a new object is created.
| ChMatrixDynamic<Real> chrono::ChMatrixDynamic< Real >::operator * | ( | const ChMatrix< RealB > & | matbis | ) |
Multiplies this matrix and another matrix. Performance warning: a new object is created.
| ChMatrixDynamic<Real> chrono::ChMatrixDynamic< Real >::operator * | ( | const Real | factor | ) |
Multiplies this matrix by a scalar value. Performance warning: a new object is created.
| virtual void chrono::ChMatrixDynamic< Real >::Resize | ( | int | nrows, | |
| int | ncols | |||
| ) | [virtual] |
CHRONO::ENGINE