MOAB
4.9.3pre
|
Expression of a mathematical vector or matrix as an array object. More...
#include <ArrayWrapper.h>
Public Types | |
typedef ArrayBase< ArrayWrapper > | Base |
typedef internal::remove_all < ExpressionType >::type | NestedExpression |
typedef internal::conditional < internal::is_lvalue < ExpressionType >::value, Scalar, const Scalar >::type | ScalarWithConstIfNotLvalue |
typedef internal::ref_selector < ExpressionType > ::non_const_type | NestedExpressionType |
Public Member Functions | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE | ArrayWrapper (ExpressionType &matrix) |
EIGEN_DEVICE_FUNC Index | rows () const |
EIGEN_DEVICE_FUNC Index | cols () const |
EIGEN_DEVICE_FUNC Index | outerStride () const |
EIGEN_DEVICE_FUNC Index | innerStride () const |
EIGEN_DEVICE_FUNC ScalarWithConstIfNotLvalue * | data () |
EIGEN_DEVICE_FUNC const Scalar * | data () const |
EIGEN_DEVICE_FUNC CoeffReturnType | coeff (Index rowId, Index colId) const |
EIGEN_DEVICE_FUNC Scalar & | coeffRef (Index rowId, Index colId) |
EIGEN_DEVICE_FUNC const Scalar & | coeffRef (Index rowId, Index colId) const |
EIGEN_DEVICE_FUNC CoeffReturnType | coeff (Index index) const |
EIGEN_DEVICE_FUNC Scalar & | coeffRef (Index index) |
EIGEN_DEVICE_FUNC const Scalar & | coeffRef (Index index) const |
template<int LoadMode> | |
const PacketScalar | packet (Index rowId, Index colId) const |
template<int LoadMode> | |
void | writePacket (Index rowId, Index colId, const PacketScalar &val) |
template<int LoadMode> | |
const PacketScalar | packet (Index index) const |
template<int LoadMode> | |
void | writePacket (Index index, const PacketScalar &val) |
template<typename Dest > | |
EIGEN_DEVICE_FUNC void | evalTo (Dest &dst) const |
const internal::remove_all < NestedExpressionType >::type &EIGEN_DEVICE_FUNC | nestedExpression () const |
EIGEN_DEVICE_FUNC void | resize (Index newSize) |
EIGEN_DEVICE_FUNC void | resize (Index rows, Index cols) |
Protected Attributes | |
NestedExpressionType | m_expression |
Expression of a mathematical vector or matrix as an array object.
This class is the return type of MatrixBase::array(), and most of the time this is the only way it is use.
Definition at line 41 of file ArrayWrapper.h.
typedef ArrayBase<ArrayWrapper> Eigen::ArrayWrapper< ExpressionType >::Base |
Reimplemented from Eigen::ArrayBase< ArrayWrapper< ExpressionType > >.
Definition at line 44 of file ArrayWrapper.h.
typedef internal::remove_all<ExpressionType>::type Eigen::ArrayWrapper< ExpressionType >::NestedExpression |
Definition at line 47 of file ArrayWrapper.h.
typedef internal::ref_selector<ExpressionType>::non_const_type Eigen::ArrayWrapper< ExpressionType >::NestedExpressionType |
Definition at line 55 of file ArrayWrapper.h.
typedef internal::conditional< internal::is_lvalue<ExpressionType>::value, Scalar, const Scalar >::type Eigen::ArrayWrapper< ExpressionType >::ScalarWithConstIfNotLvalue |
Definition at line 53 of file ArrayWrapper.h.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Eigen::ArrayWrapper< ExpressionType >::ArrayWrapper | ( | ExpressionType & | matrix | ) | [inline, explicit] |
Definition at line 58 of file ArrayWrapper.h.
: m_expression(matrix) {}
EIGEN_DEVICE_FUNC CoeffReturnType Eigen::ArrayWrapper< ExpressionType >::coeff | ( | Index | rowId, |
Index | colId | ||
) | const [inline] |
Definition at line 75 of file ArrayWrapper.h.
{ return m_expression.coeff(rowId, colId); }
EIGEN_DEVICE_FUNC CoeffReturnType Eigen::ArrayWrapper< ExpressionType >::coeff | ( | Index | index | ) | const [inline] |
Definition at line 93 of file ArrayWrapper.h.
{ return m_expression.coeff(index); }
EIGEN_DEVICE_FUNC Scalar& Eigen::ArrayWrapper< ExpressionType >::coeffRef | ( | Index | rowId, |
Index | colId | ||
) | [inline] |
Definition at line 81 of file ArrayWrapper.h.
{ return m_expression.coeffRef(rowId, colId); }
EIGEN_DEVICE_FUNC const Scalar& Eigen::ArrayWrapper< ExpressionType >::coeffRef | ( | Index | rowId, |
Index | colId | ||
) | const [inline] |
Definition at line 87 of file ArrayWrapper.h.
{ return m_expression.coeffRef(rowId, colId); }
EIGEN_DEVICE_FUNC Scalar& Eigen::ArrayWrapper< ExpressionType >::coeffRef | ( | Index | index | ) | [inline] |
Definition at line 99 of file ArrayWrapper.h.
{ return m_expression.coeffRef(index); }
EIGEN_DEVICE_FUNC const Scalar& Eigen::ArrayWrapper< ExpressionType >::coeffRef | ( | Index | index | ) | const [inline] |
Definition at line 105 of file ArrayWrapper.h.
{ return m_expression.coeffRef(index); }
EIGEN_DEVICE_FUNC Index Eigen::ArrayWrapper< ExpressionType >::cols | ( | ) | const [inline] |
Definition at line 63 of file ArrayWrapper.h.
{ return m_expression.cols(); }
EIGEN_DEVICE_FUNC ScalarWithConstIfNotLvalue* Eigen::ArrayWrapper< ExpressionType >::data | ( | ) | [inline] |
Definition at line 70 of file ArrayWrapper.h.
{ return m_expression.data(); }
EIGEN_DEVICE_FUNC const Scalar* Eigen::ArrayWrapper< ExpressionType >::data | ( | ) | const [inline] |
Definition at line 72 of file ArrayWrapper.h.
{ return m_expression.data(); }
EIGEN_DEVICE_FUNC void Eigen::ArrayWrapper< ExpressionType >::evalTo | ( | Dest & | dst | ) | const [inline] |
Reimplemented from Eigen::DenseBase< ArrayWrapper< ExpressionType > >.
Definition at line 136 of file ArrayWrapper.h.
{ dst = m_expression; }
EIGEN_DEVICE_FUNC Index Eigen::ArrayWrapper< ExpressionType >::innerStride | ( | ) | const [inline] |
Definition at line 67 of file ArrayWrapper.h.
{ return m_expression.innerStride(); }
const internal::remove_all<NestedExpressionType>::type& EIGEN_DEVICE_FUNC Eigen::ArrayWrapper< ExpressionType >::nestedExpression | ( | ) | const [inline] |
Definition at line 140 of file ArrayWrapper.h.
{ return m_expression; }
EIGEN_DEVICE_FUNC Index Eigen::ArrayWrapper< ExpressionType >::outerStride | ( | ) | const [inline] |
Definition at line 65 of file ArrayWrapper.h.
{ return m_expression.outerStride(); }
const PacketScalar Eigen::ArrayWrapper< ExpressionType >::packet | ( | Index | rowId, |
Index | colId | ||
) | const [inline] |
Definition at line 111 of file ArrayWrapper.h.
{ return m_expression.template packet<LoadMode>(rowId, colId); }
const PacketScalar Eigen::ArrayWrapper< ExpressionType >::packet | ( | Index | index | ) | const [inline] |
Definition at line 123 of file ArrayWrapper.h.
{ return m_expression.template packet<LoadMode>(index); }
EIGEN_DEVICE_FUNC void Eigen::ArrayWrapper< ExpressionType >::resize | ( | Index | newSize | ) | [inline] |
Forwards the resizing request to the nested expression
Reimplemented from Eigen::DenseBase< ArrayWrapper< ExpressionType > >.
Definition at line 148 of file ArrayWrapper.h.
{ m_expression.resize(newSize); }
EIGEN_DEVICE_FUNC void Eigen::ArrayWrapper< ExpressionType >::resize | ( | Index | rows, |
Index | cols | ||
) | [inline] |
Forwards the resizing request to the nested expression
Reimplemented from Eigen::DenseBase< ArrayWrapper< ExpressionType > >.
Definition at line 152 of file ArrayWrapper.h.
{ m_expression.resize(rows,cols); }
EIGEN_DEVICE_FUNC Index Eigen::ArrayWrapper< ExpressionType >::rows | ( | ) | const [inline] |
Definition at line 61 of file ArrayWrapper.h.
{ return m_expression.rows(); }
void Eigen::ArrayWrapper< ExpressionType >::writePacket | ( | Index | rowId, |
Index | colId, | ||
const PacketScalar & | val | ||
) | [inline] |
Definition at line 117 of file ArrayWrapper.h.
{ m_expression.template writePacket<LoadMode>(rowId, colId, val); }
void Eigen::ArrayWrapper< ExpressionType >::writePacket | ( | Index | index, |
const PacketScalar & | val | ||
) | [inline] |
Definition at line 129 of file ArrayWrapper.h.
{ m_expression.template writePacket<LoadMode>(index, val); }
NestedExpressionType Eigen::ArrayWrapper< ExpressionType >::m_expression [protected] |
Definition at line 155 of file ArrayWrapper.h.