MOAB
4.9.3pre
|
Expression of an array as a mathematical vector or matrix. More...
#include <ArrayWrapper.h>
Public Types | |
typedef MatrixBase < MatrixWrapper < ExpressionType > > | 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 | MatrixWrapper (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) |
EIGEN_DEVICE_FUNC const internal::remove_all < NestedExpressionType >::type & | 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 an array as a mathematical vector or matrix.
This class is the return type of ArrayBase::matrix(), and most of the time this is the only way it is use.
Definition at line 184 of file ArrayWrapper.h.
typedef MatrixBase<MatrixWrapper<ExpressionType> > Eigen::MatrixWrapper< ExpressionType >::Base |
Reimplemented from Eigen::MatrixBase< MatrixWrapper< ExpressionType > >.
Definition at line 187 of file ArrayWrapper.h.
typedef internal::remove_all<ExpressionType>::type Eigen::MatrixWrapper< ExpressionType >::NestedExpression |
Definition at line 190 of file ArrayWrapper.h.
typedef internal::ref_selector<ExpressionType>::non_const_type Eigen::MatrixWrapper< ExpressionType >::NestedExpressionType |
Definition at line 198 of file ArrayWrapper.h.
typedef internal::conditional< internal::is_lvalue<ExpressionType>::value, Scalar, const Scalar >::type Eigen::MatrixWrapper< ExpressionType >::ScalarWithConstIfNotLvalue |
Definition at line 196 of file ArrayWrapper.h.
EIGEN_DEVICE_FUNC Eigen::MatrixWrapper< ExpressionType >::MatrixWrapper | ( | ExpressionType & | matrix | ) | [inline, explicit] |
Definition at line 201 of file ArrayWrapper.h.
: m_expression(matrix) {}
EIGEN_DEVICE_FUNC CoeffReturnType Eigen::MatrixWrapper< ExpressionType >::coeff | ( | Index | rowId, |
Index | colId | ||
) | const [inline] |
Definition at line 218 of file ArrayWrapper.h.
{ return m_expression.coeff(rowId, colId); }
EIGEN_DEVICE_FUNC CoeffReturnType Eigen::MatrixWrapper< ExpressionType >::coeff | ( | Index | index | ) | const [inline] |
Definition at line 236 of file ArrayWrapper.h.
{ return m_expression.coeff(index); }
EIGEN_DEVICE_FUNC Scalar& Eigen::MatrixWrapper< ExpressionType >::coeffRef | ( | Index | rowId, |
Index | colId | ||
) | [inline] |
Definition at line 224 of file ArrayWrapper.h.
{ return m_expression.coeffRef(rowId, colId); }
EIGEN_DEVICE_FUNC const Scalar& Eigen::MatrixWrapper< ExpressionType >::coeffRef | ( | Index | rowId, |
Index | colId | ||
) | const [inline] |
Definition at line 230 of file ArrayWrapper.h.
{ return m_expression.derived().coeffRef(rowId, colId); }
EIGEN_DEVICE_FUNC Scalar& Eigen::MatrixWrapper< ExpressionType >::coeffRef | ( | Index | index | ) | [inline] |
Definition at line 242 of file ArrayWrapper.h.
{ return m_expression.coeffRef(index); }
EIGEN_DEVICE_FUNC const Scalar& Eigen::MatrixWrapper< ExpressionType >::coeffRef | ( | Index | index | ) | const [inline] |
Definition at line 248 of file ArrayWrapper.h.
{ return m_expression.coeffRef(index); }
EIGEN_DEVICE_FUNC Index Eigen::MatrixWrapper< ExpressionType >::cols | ( | ) | const [inline] |
Definition at line 206 of file ArrayWrapper.h.
{ return m_expression.cols(); }
EIGEN_DEVICE_FUNC ScalarWithConstIfNotLvalue* Eigen::MatrixWrapper< ExpressionType >::data | ( | ) | [inline] |
Definition at line 213 of file ArrayWrapper.h.
{ return m_expression.data(); }
EIGEN_DEVICE_FUNC const Scalar* Eigen::MatrixWrapper< ExpressionType >::data | ( | ) | const [inline] |
Definition at line 215 of file ArrayWrapper.h.
{ return m_expression.data(); }
EIGEN_DEVICE_FUNC Index Eigen::MatrixWrapper< ExpressionType >::innerStride | ( | ) | const [inline] |
Definition at line 210 of file ArrayWrapper.h.
{ return m_expression.innerStride(); }
EIGEN_DEVICE_FUNC const internal::remove_all<NestedExpressionType>::type& Eigen::MatrixWrapper< ExpressionType >::nestedExpression | ( | ) | const [inline] |
Definition at line 279 of file ArrayWrapper.h.
{ return m_expression; }
EIGEN_DEVICE_FUNC Index Eigen::MatrixWrapper< ExpressionType >::outerStride | ( | ) | const [inline] |
Definition at line 208 of file ArrayWrapper.h.
{ return m_expression.outerStride(); }
const PacketScalar Eigen::MatrixWrapper< ExpressionType >::packet | ( | Index | rowId, |
Index | colId | ||
) | const [inline] |
Definition at line 254 of file ArrayWrapper.h.
{ return m_expression.template packet<LoadMode>(rowId, colId); }
const PacketScalar Eigen::MatrixWrapper< ExpressionType >::packet | ( | Index | index | ) | const [inline] |
Definition at line 266 of file ArrayWrapper.h.
{ return m_expression.template packet<LoadMode>(index); }
EIGEN_DEVICE_FUNC void Eigen::MatrixWrapper< ExpressionType >::resize | ( | Index | newSize | ) | [inline] |
Forwards the resizing request to the nested expression
Reimplemented from Eigen::DenseBase< MatrixWrapper< ExpressionType > >.
Definition at line 287 of file ArrayWrapper.h.
{ m_expression.resize(newSize); }
EIGEN_DEVICE_FUNC void Eigen::MatrixWrapper< ExpressionType >::resize | ( | Index | rows, |
Index | cols | ||
) | [inline] |
Forwards the resizing request to the nested expression
Reimplemented from Eigen::DenseBase< MatrixWrapper< ExpressionType > >.
Definition at line 291 of file ArrayWrapper.h.
{ m_expression.resize(rows,cols); }
EIGEN_DEVICE_FUNC Index Eigen::MatrixWrapper< ExpressionType >::rows | ( | ) | const [inline] |
Definition at line 204 of file ArrayWrapper.h.
{ return m_expression.rows(); }
void Eigen::MatrixWrapper< ExpressionType >::writePacket | ( | Index | rowId, |
Index | colId, | ||
const PacketScalar & | val | ||
) | [inline] |
Definition at line 260 of file ArrayWrapper.h.
{ m_expression.template writePacket<LoadMode>(rowId, colId, val); }
void Eigen::MatrixWrapper< ExpressionType >::writePacket | ( | Index | index, |
const PacketScalar & | val | ||
) | [inline] |
Definition at line 272 of file ArrayWrapper.h.
{ m_expression.template writePacket<LoadMode>(index, val); }
NestedExpressionType Eigen::MatrixWrapper< ExpressionType >::m_expression [protected] |
Definition at line 294 of file ArrayWrapper.h.