MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
grad::Mat3xNDirectExpr Class Reference

#include <matvec.h>

Collaboration diagram for grad::Mat3xNDirectExpr:

Public Types

typedef void RowVectorType
 
typedef void ColumnVectorType
 
typedef ScalarTypeTraits
< doublereal >::ScalarType 
ScalarType
 
typedef ScalarTypeTraits
< doublereal >
::DirectExpressionType 
ExpressionType
 

Public Member Functions

 Mat3xNDirectExpr (const Mat3xN &A)
 
const ScalarTypeoperator() (index_type i, index_type j) const
 
index_type iGetNumRows () const
 
index_type iGetNumCols () const
 
template<typename ScalarType2 >
bool bHaveReferenceTo (const ScalarType2 *pFirst, const ScalarType2 *pLast) const
 

Static Public Attributes

static const bool bAlias = false
 
static const index_type iNumRows = 3
 
static const index_type iNumCols = DYNAMIC_SIZE
 

Private Attributes

const Mat3xNA
 

Detailed Description

Definition at line 1521 of file matvec.h.

Member Typedef Documentation

Definition at line 1528 of file matvec.h.

Definition at line 1530 of file matvec.h.

Definition at line 1527 of file matvec.h.

Constructor & Destructor Documentation

grad::Mat3xNDirectExpr::Mat3xNDirectExpr ( const Mat3xN A)
inline

Definition at line 1532 of file matvec.h.

1533  :A(A) {
1534 
1535  }
const Mat3xN & A
Definition: matvec.h:1559

Member Function Documentation

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

Definition at line 1554 of file matvec.h.

References A, grad::bArrayOverlap(), Mat3xN::iGetNumCols(), and Mat3xN::iGetNumRows().

1554  {
1555  return bArrayOverlap(&A(1, 1), &A(A.iGetNumRows(), A.iGetNumCols()), pFirst, pLast);
1556  }
integer iGetNumRows(void) const
Definition: matvec3n.h:254
bool bArrayOverlap(const ScalarType *pFirstArray1, const ScalarType *pLastArray1, const ScalarType *pFirstArray2, const ScalarType *pLastArray2)
Definition: matvec.h:430
integer iGetNumCols(void) const
Definition: matvec3n.h:298
const Mat3xN & A
Definition: matvec.h:1559

Here is the call graph for this function:

index_type grad::Mat3xNDirectExpr::iGetNumCols ( void  ) const
inline

Definition at line 1549 of file matvec.h.

References A, and Mat3xN::iGetNumCols().

Referenced by operator()().

1549  {
1550  return A.iGetNumCols();
1551  }
integer iGetNumCols(void) const
Definition: matvec3n.h:298
const Mat3xN & A
Definition: matvec.h:1559

Here is the call graph for this function:

index_type grad::Mat3xNDirectExpr::iGetNumRows ( void  ) const
inline

Definition at line 1545 of file matvec.h.

References iNumRows.

Referenced by operator()().

1545  {
1546  return iNumRows;
1547  }
static const index_type iNumRows
Definition: matvec.h:1524
const ScalarType& grad::Mat3xNDirectExpr::operator() ( index_type  i,
index_type  j 
) const
inline

Definition at line 1537 of file matvec.h.

References A, iGetNumCols(), iGetNumRows(), and MATVEC_ASSERT.

1537  {
1538  MATVEC_ASSERT(i >= 1);
1539  MATVEC_ASSERT(i <= iGetNumRows());
1540  MATVEC_ASSERT(j >= 1);
1541  MATVEC_ASSERT(j <= iGetNumCols());
1542  return A(i, j);
1543  }
index_type iGetNumRows() const
Definition: matvec.h:1545
#define MATVEC_ASSERT(expr)
Definition: matvec.h:64
index_type iGetNumCols() const
Definition: matvec.h:1549
const Mat3xN & A
Definition: matvec.h:1559

Here is the call graph for this function:

Member Data Documentation

const Mat3xN& grad::Mat3xNDirectExpr::A
private

Definition at line 1559 of file matvec.h.

Referenced by bHaveReferenceTo(), iGetNumCols(), and operator()().

const bool grad::Mat3xNDirectExpr::bAlias = false
static

Definition at line 1523 of file matvec.h.

const index_type grad::Mat3xNDirectExpr::iNumCols = DYNAMIC_SIZE
static

Definition at line 1525 of file matvec.h.

const index_type grad::Mat3xNDirectExpr::iNumRows = 3
static

Definition at line 1524 of file matvec.h.

Referenced by iGetNumRows().


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