MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
grad::GradientVectorHandler< doublereal > Class Template Reference

#include <matvecass.h>

Collaboration diagram for grad::GradientVectorHandler< doublereal >:

Public Member Functions

 GradientVectorHandler (const VectorHandler &vh)
 
void dGetCoef (integer iRow, doublereal &dVal, doublereal dCoef, LocalDofMap *pDofMap) const
 
template<index_type N_rows>
void GetVec (integer iRow, Vector< double, N_rows > &v, doublereal dCoef, LocalDofMap *pDofMap) const
 

Private Attributes

const VectorHandlervh
 

Detailed Description

template<>
class grad::GradientVectorHandler< doublereal >

Definition at line 58 of file matvecass.h.

Constructor & Destructor Documentation

Definition at line 60 of file matvecass.h.

61  :vh(vh) {
62 
63  }

Member Function Documentation

void grad::GradientVectorHandler< doublereal >::dGetCoef ( integer  iRow,
doublereal dVal,
doublereal  dCoef,
LocalDofMap pDofMap 
) const
inline

Definition at line 65 of file matvecass.h.

65  {
66  dVal = vh.dGetCoef(iRow);
67  }
virtual const doublereal & dGetCoef(integer iRow) const =0
template<index_type N_rows>
void grad::GradientVectorHandler< doublereal >::GetVec ( integer  iRow,
Vector< double, N_rows > &  v,
doublereal  dCoef,
LocalDofMap pDofMap 
) const
inline

Definition at line 70 of file matvecass.h.

References grad::Vector< T, N_rows >::iGetNumRows().

70  {
71  for (integer i = 0; i < v.iGetNumRows(); ++i) {
72  v(i + 1) = vh.dGetCoef(iRow + i);
73  }
74  }
virtual const doublereal & dGetCoef(integer iRow) const =0
long int integer
Definition: colamd.c:51

Here is the call graph for this function:

Member Data Documentation

Definition at line 77 of file matvecass.h.


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