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

#include <matvec.h>

Collaboration diagram for grad::MatCrossInit< T, VectorExpr >:

Public Member Functions

 MatCrossInit (const VectorExpression< VectorExpr, 3 > &v, doublereal d)
 
void Initialize (Matrix< T, 3, 3 > &A) const
 
index_type iGetNumRows () const
 
index_type iGetNumCols () const
 

Static Public Attributes

static const index_type iNumRows = 3
 
static const index_type iNumCols = 3
 

Private Attributes

const VectorExpression
< VectorExpr, 3 > 
v
 
const doublereal d
 

Detailed Description

template<typename T, typename VectorExpr>
class grad::MatCrossInit< T, VectorExpr >

Definition at line 2612 of file matvec.h.

Constructor & Destructor Documentation

template<typename T , typename VectorExpr >
grad::MatCrossInit< T, VectorExpr >::MatCrossInit ( const VectorExpression< VectorExpr, 3 > &  v,
doublereal  d 
)
inline

Definition at line 2617 of file matvec.h.

2618  :v(v), d(d) {
2619 
2620  }
const doublereal d
Definition: matvec.h:2642
const VectorExpression< VectorExpr, 3 > v
Definition: matvec.h:2641

Member Function Documentation

template<typename T , typename VectorExpr >
index_type grad::MatCrossInit< T, VectorExpr >::iGetNumCols ( void  ) const
inline

Definition at line 2639 of file matvec.h.

2639 { return iNumCols; }
static const index_type iNumCols
Definition: matvec.h:2615
template<typename T , typename VectorExpr >
index_type grad::MatCrossInit< T, VectorExpr >::iGetNumRows ( void  ) const
inline

Definition at line 2638 of file matvec.h.

References grad::Vector< T, N_rows >::iNumRows.

2638 { return iNumRows; }
static const index_type iNumRows
Definition: matvec.h:2614
template<typename T , typename VectorExpr >
void grad::MatCrossInit< T, VectorExpr >::Initialize ( Matrix< T, 3, 3 > &  A) const
inline

Definition at line 2622 of file matvec.h.

2622  {
2623  const index_type x = 1, y = 2, z = 3;
2624  /*
2625  * A = [ 0, -z, y;
2626  * z, 0, -x;
2627  * -y, x, 0];
2628  */
2629  A(x, x) = A(y, y) = A(z, z) = d;
2630  A(x, y) = -v(z);
2631  A(x, z) = v(y);
2632  A(y, x) = v(z);
2633  A(y, z) = -v(x);
2634  A(z, x) = -v(y);
2635  A(z, y) = v(x);
2636  }
integer index_type
Definition: gradient.h:104
const doublereal d
Definition: matvec.h:2642
const VectorExpression< VectorExpr, 3 > v
Definition: matvec.h:2641

Member Data Documentation

template<typename T , typename VectorExpr >
const doublereal grad::MatCrossInit< T, VectorExpr >::d
private

Definition at line 2642 of file matvec.h.

template<typename T , typename VectorExpr >
const index_type grad::MatCrossInit< T, VectorExpr >::iNumCols = 3
static

Definition at line 2615 of file matvec.h.

template<typename T , typename VectorExpr >
const index_type grad::MatCrossInit< T, VectorExpr >::iNumRows = 3
static

Definition at line 2614 of file matvec.h.

template<typename T , typename VectorExpr >
const VectorExpression<VectorExpr, 3> grad::MatCrossInit< T, VectorExpr >::v
private

Definition at line 2641 of file matvec.h.


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