MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
grad::MatrixData< T, DYNAMIC_SIZE, DYNAMIC_SIZE > Class Template Reference

#include <matvec.h>

Collaboration diagram for grad::MatrixData< T, DYNAMIC_SIZE, DYNAMIC_SIZE >:

Public Member Functions

 MatrixData (index_type iNumRows, index_type iNumCols, bool bZeroInit)
 
index_type iGetNumRows () const
 
index_type iGetNumCols () const
 
T & operator() (index_type i, index_type j)
 
const T & operator() (index_type i, index_type j) const
 
void Resize (index_type iRows, index_type iCols)
 
const T * pGetFirstElem () const
 
const T * pGetLastElem () const
 

Private Attributes

integer iNumRows
 
integer iNumCols
 
VectorData< T, DYNAMIC_SIZErgData
 

Detailed Description

template<typename T>
class grad::MatrixData< T, DYNAMIC_SIZE, DYNAMIC_SIZE >

Definition at line 1773 of file matvec.h.

Constructor & Destructor Documentation

template<typename T >
grad::MatrixData< T, DYNAMIC_SIZE, DYNAMIC_SIZE >::MatrixData ( index_type  iNumRows,
index_type  iNumCols,
bool  bZeroInit 
)
inline

Definition at line 1776 of file matvec.h.

Member Function Documentation

template<typename T >
index_type grad::MatrixData< T, DYNAMIC_SIZE, DYNAMIC_SIZE >::iGetNumCols ( void  ) const
inline

Definition at line 1783 of file matvec.h.

template<typename T >
index_type grad::MatrixData< T, DYNAMIC_SIZE, DYNAMIC_SIZE >::iGetNumRows ( void  ) const
inline

Definition at line 1782 of file matvec.h.

template<typename T >
T& grad::MatrixData< T, DYNAMIC_SIZE, DYNAMIC_SIZE >::operator() ( index_type  i,
index_type  j 
)
inline

Definition at line 1785 of file matvec.h.

References MATVEC_ASSERT, and grad::MatrixData< T, N_rows, N_cols >::rgData.

1785  {
1786  MATVEC_ASSERT(i >= 1 && i <= iNumRows);
1787  MATVEC_ASSERT(j >= 1 && j <= iNumCols);
1788  return rgData[(i - 1) * iNumCols + (j - 1)];
1789  }
#define MATVEC_ASSERT(expr)
Definition: matvec.h:64
VectorData< T, DYNAMIC_SIZE > rgData
Definition: matvec.h:1814
template<typename T >
const T& grad::MatrixData< T, DYNAMIC_SIZE, DYNAMIC_SIZE >::operator() ( index_type  i,
index_type  j 
) const
inline

Definition at line 1791 of file matvec.h.

References MATVEC_ASSERT, and grad::MatrixData< T, N_rows, N_cols >::rgData.

1791  {
1792  MATVEC_ASSERT(i >= 1 && i <= iNumRows);
1793  MATVEC_ASSERT(j >= 1 && j <= iNumCols);
1794  return rgData[(i - 1) * iNumCols + (j - 1)];
1795  }
#define MATVEC_ASSERT(expr)
Definition: matvec.h:64
VectorData< T, DYNAMIC_SIZE > rgData
Definition: matvec.h:1814
template<typename T >
const T* grad::MatrixData< T, DYNAMIC_SIZE, DYNAMIC_SIZE >::pGetFirstElem ( ) const
inline

Definition at line 1805 of file matvec.h.

References grad::MatrixData< T, N_rows, N_cols >::rgData.

1805  {
1806  return rgData.pGetFirstElem();
1807  }
const T * pGetFirstElem() const
Definition: matvec.h:1714
VectorData< T, DYNAMIC_SIZE > rgData
Definition: matvec.h:1814
template<typename T >
const T* grad::MatrixData< T, DYNAMIC_SIZE, DYNAMIC_SIZE >::pGetLastElem ( ) const
inline

Definition at line 1809 of file matvec.h.

References grad::MatrixData< T, N_rows, N_cols >::rgData.

1809  {
1810  return rgData.pGetLastElem();
1811  }
VectorData< T, DYNAMIC_SIZE > rgData
Definition: matvec.h:1814
const T * pGetLastElem() const
Definition: matvec.h:1718
template<typename T >
void grad::MatrixData< T, DYNAMIC_SIZE, DYNAMIC_SIZE >::Resize ( index_type  iRows,
index_type  iCols 
)
inline

Definition at line 1797 of file matvec.h.

References grad::MatrixData< T, N_rows, N_cols >::rgData.

1797  {
1798  if (iRows != iNumRows || iCols != iCols) {
1799  rgData.Resize(iRows * iCols);
1800  iNumRows = iRows;
1801  iNumCols = iCols;
1802  }
1803  }
void Resize(index_type iNumRows)
Definition: matvec.h:1708
VectorData< T, DYNAMIC_SIZE > rgData
Definition: matvec.h:1814

Member Data Documentation

template<typename T >
integer grad::MatrixData< T, DYNAMIC_SIZE, DYNAMIC_SIZE >::iNumCols
private

Definition at line 1813 of file matvec.h.

template<typename T >
integer grad::MatrixData< T, DYNAMIC_SIZE, DYNAMIC_SIZE >::iNumRows
private

Definition at line 1813 of file matvec.h.

template<typename T >
VectorData<T, DYNAMIC_SIZE> grad::MatrixData< T, DYNAMIC_SIZE, DYNAMIC_SIZE >::rgData
private

Definition at line 1814 of file matvec.h.


The documentation for this class was generated from the following file: