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

#include <matvec.h>

Collaboration diagram for grad::ColumnVectorExpr< MatrixExpr >:

Public Types

typedef MatrixExpr::ScalarType ScalarType
 
typedef MatrixExpr::ExpressionType ExpressionType
 

Public Member Functions

 ColumnVectorExpr (const MatrixExpr &A, index_type iCol)
 
ExpressionType operator() (index_type iRow) const
 
index_type iGetNumRows () const
 
template<typename ScalarType2 >
bool bHaveReferenceTo (const ScalarType2 *pFirst, const ScalarType2 *pLast) const
 

Static Public Attributes

static const bool bAlias = MatrixExpr::bAlias
 
static const index_type iNumRows = MatrixExpr::iNumRows
 

Private Attributes

const MatrixExpr A
 
const index_type iCol
 

Detailed Description

template<typename MatrixExpr>
class grad::ColumnVectorExpr< MatrixExpr >

Definition at line 1043 of file matvec.h.

Member Typedef Documentation

template<typename MatrixExpr >
typedef MatrixExpr::ExpressionType grad::ColumnVectorExpr< MatrixExpr >::ExpressionType

Definition at line 1048 of file matvec.h.

template<typename MatrixExpr >
typedef MatrixExpr::ScalarType grad::ColumnVectorExpr< MatrixExpr >::ScalarType

Definition at line 1047 of file matvec.h.

Constructor & Destructor Documentation

template<typename MatrixExpr >
grad::ColumnVectorExpr< MatrixExpr >::ColumnVectorExpr ( const MatrixExpr &  A,
index_type  iCol 
)
inline

Definition at line 1050 of file matvec.h.

References grad::DYNAMIC_SIZE, grad::ColumnVectorExpr< MatrixExpr >::iNumRows, and MATVEC_ASSERT.

1051  :A(A), iCol(iCol) {
1052  MATVEC_ASSERT((iNumRows == A.iGetNumRows()) || (iNumRows == DYNAMIC_SIZE && A.iGetNumRows() >= 0));
1053  }
static const index_type DYNAMIC_SIZE
Definition: gradient.h:141
#define MATVEC_ASSERT(expr)
Definition: matvec.h:64
const MatrixExpr A
Definition: matvec.h:1069
const index_type iCol
Definition: matvec.h:1070
static const index_type iNumRows
Definition: matvec.h:1046

Member Function Documentation

template<typename MatrixExpr >
template<typename ScalarType2 >
bool grad::ColumnVectorExpr< MatrixExpr >::bHaveReferenceTo ( const ScalarType2 *  pFirst,
const ScalarType2 *  pLast 
) const
inline

Definition at line 1064 of file matvec.h.

References grad::ColumnVectorExpr< MatrixExpr >::A.

1064  {
1065  return A.bHaveReferenceTo(pFirst, pLast);
1066  }
const MatrixExpr A
Definition: matvec.h:1069
template<typename MatrixExpr >
index_type grad::ColumnVectorExpr< MatrixExpr >::iGetNumRows ( void  ) const
inline

Definition at line 1061 of file matvec.h.

References grad::ColumnVectorExpr< MatrixExpr >::A.

Referenced by grad::ColumnVectorExpr< MatrixExpr >::operator()().

1061 { return A.iGetNumRows(); }
const MatrixExpr A
Definition: matvec.h:1069
template<typename MatrixExpr >
ExpressionType grad::ColumnVectorExpr< MatrixExpr >::operator() ( index_type  iRow) const
inline

Definition at line 1055 of file matvec.h.

References grad::ColumnVectorExpr< MatrixExpr >::A, grad::ColumnVectorExpr< MatrixExpr >::iCol, grad::ColumnVectorExpr< MatrixExpr >::iGetNumRows(), and MATVEC_ASSERT.

1055  {
1056  MATVEC_ASSERT(iRow >= 1);
1057  MATVEC_ASSERT(iRow <= iGetNumRows());
1058  return A(iRow, iCol);
1059  }
#define MATVEC_ASSERT(expr)
Definition: matvec.h:64
index_type iGetNumRows() const
Definition: matvec.h:1061
const MatrixExpr A
Definition: matvec.h:1069
const index_type iCol
Definition: matvec.h:1070

Here is the call graph for this function:

Member Data Documentation

template<typename MatrixExpr >
const MatrixExpr grad::ColumnVectorExpr< MatrixExpr >::A
private
template<typename MatrixExpr >
const bool grad::ColumnVectorExpr< MatrixExpr >::bAlias = MatrixExpr::bAlias
static

Definition at line 1045 of file matvec.h.

template<typename MatrixExpr >
const index_type grad::ColumnVectorExpr< MatrixExpr >::iCol
private

Definition at line 1070 of file matvec.h.

Referenced by grad::ColumnVectorExpr< MatrixExpr >::operator()().

template<typename MatrixExpr >
const index_type grad::ColumnVectorExpr< MatrixExpr >::iNumRows = MatrixExpr::iNumRows
static

Definition at line 1046 of file matvec.h.

Referenced by grad::ColumnVectorExpr< MatrixExpr >::ColumnVectorExpr().


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