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

#include <matvec.h>

Collaboration diagram for grad::RowVectorExpr< MatrixExpr >:

Public Types

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

Public Member Functions

 RowVectorExpr (const MatrixExpr &A, index_type iRow)
 
ExpressionType operator() (index_type iCol) 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::iNumCols
 

Private Attributes

const MatrixExpr A
 
const index_type iRow
 

Detailed Description

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

Definition at line 1074 of file matvec.h.

Member Typedef Documentation

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

Definition at line 1079 of file matvec.h.

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

Definition at line 1078 of file matvec.h.

Constructor & Destructor Documentation

template<typename MatrixExpr >
grad::RowVectorExpr< MatrixExpr >::RowVectorExpr ( const MatrixExpr &  A,
index_type  iRow 
)
inline

Definition at line 1081 of file matvec.h.

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

1082  :A(A), iRow(iRow) {
1083  MATVEC_ASSERT((iNumRows == A.iGetNumCols()) || (iNumRows == DYNAMIC_SIZE && A.iGetNumCols() >= 0));
1084  }
static const index_type DYNAMIC_SIZE
Definition: gradient.h:141
#define MATVEC_ASSERT(expr)
Definition: matvec.h:64
const MatrixExpr A
Definition: matvec.h:1100
static const index_type iNumRows
Definition: matvec.h:1077
const index_type iRow
Definition: matvec.h:1101

Member Function Documentation

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

Definition at line 1095 of file matvec.h.

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

1095  {
1096  return A.bHaveReferenceTo(pFirst, pLast);
1097  }
const MatrixExpr A
Definition: matvec.h:1100
template<typename MatrixExpr >
index_type grad::RowVectorExpr< MatrixExpr >::iGetNumRows ( void  ) const
inline

Definition at line 1092 of file matvec.h.

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

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

1092 { return A.iGetNumCols(); }
const MatrixExpr A
Definition: matvec.h:1100
template<typename MatrixExpr >
ExpressionType grad::RowVectorExpr< MatrixExpr >::operator() ( index_type  iCol) const
inline

Definition at line 1086 of file matvec.h.

References grad::RowVectorExpr< MatrixExpr >::A, grad::RowVectorExpr< MatrixExpr >::iGetNumRows(), grad::RowVectorExpr< MatrixExpr >::iRow, and MATVEC_ASSERT.

1086  {
1087  MATVEC_ASSERT(iCol >= 1);
1088  MATVEC_ASSERT(iCol <= iGetNumRows());
1089  return A(iRow, iCol);
1090  }
#define MATVEC_ASSERT(expr)
Definition: matvec.h:64
const MatrixExpr A
Definition: matvec.h:1100
index_type iGetNumRows() const
Definition: matvec.h:1092
const index_type iRow
Definition: matvec.h:1101

Here is the call graph for this function:

Member Data Documentation

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

Definition at line 1076 of file matvec.h.

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

Definition at line 1077 of file matvec.h.

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

template<typename MatrixExpr >
const index_type grad::RowVectorExpr< MatrixExpr >::iRow
private

Definition at line 1101 of file matvec.h.

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


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