MOAB
4.9.3pre
|
#include <Ref.h>
Public Types | |
typedef MapBase< Derived > | Base |
Public Member Functions | |
EIGEN_DEVICE_FUNC Index | innerStride () const |
EIGEN_DEVICE_FUNC Index | outerStride () const |
EIGEN_DEVICE_FUNC | RefBase () |
Protected Types | |
typedef Stride < StrideType::OuterStrideAtCompileTime, StrideType::InnerStrideAtCompileTime > | StrideBase |
Protected Member Functions | |
template<typename Expression > | |
EIGEN_DEVICE_FUNC void | construct (Expression &expr) |
Protected Attributes | |
StrideBase | m_stride |
Private Types | |
typedef internal::traits < Derived >::PlainObjectType | PlainObjectType |
typedef internal::traits < Derived >::StrideType | StrideType |
typedef MapBase<Derived> Eigen::RefBase< Derived >::Base |
typedef internal::traits<Derived>::PlainObjectType Eigen::RefBase< Derived >::PlainObjectType [private] |
typedef Stride<StrideType::OuterStrideAtCompileTime,StrideType::InnerStrideAtCompileTime> Eigen::RefBase< Derived >::StrideBase [protected] |
typedef internal::traits<Derived>::StrideType Eigen::RefBase< Derived >::StrideType [private] |
EIGEN_DEVICE_FUNC Eigen::RefBase< Derived >::RefBase | ( | ) | [inline] |
Definition at line 76 of file Ref.h.
: Base(0,RowsAtCompileTime==Dynamic?0:RowsAtCompileTime,ColsAtCompileTime==Dynamic?0:ColsAtCompileTime), // Stride<> does not allow default ctor for Dynamic strides, so let' initialize it with dummy values: m_stride(StrideType::OuterStrideAtCompileTime==Dynamic?0:StrideType::OuterStrideAtCompileTime, StrideType::InnerStrideAtCompileTime==Dynamic?0:StrideType::InnerStrideAtCompileTime) {}
EIGEN_DEVICE_FUNC void Eigen::RefBase< Derived >::construct | ( | Expression & | expr | ) | [inline, protected] |
Definition at line 90 of file Ref.h.
{ if(PlainObjectType::RowsAtCompileTime==1) { eigen_assert(expr.rows()==1 || expr.cols()==1); ::new (static_cast<Base*>(this)) Base(expr.data(), 1, expr.size()); } else if(PlainObjectType::ColsAtCompileTime==1) { eigen_assert(expr.rows()==1 || expr.cols()==1); ::new (static_cast<Base*>(this)) Base(expr.data(), expr.size(), 1); } else ::new (static_cast<Base*>(this)) Base(expr.data(), expr.rows(), expr.cols()); if(Expression::IsVectorAtCompileTime && (!PlainObjectType::IsVectorAtCompileTime) && ((Expression::Flags&RowMajorBit)!=(PlainObjectType::Flags&RowMajorBit))) ::new (&m_stride) StrideBase(expr.innerStride(), StrideType::InnerStrideAtCompileTime==0?0:1); else ::new (&m_stride) StrideBase(StrideType::OuterStrideAtCompileTime==0?0:expr.outerStride(), StrideType::InnerStrideAtCompileTime==0?0:expr.innerStride()); }
EIGEN_DEVICE_FUNC Index Eigen::RefBase< Derived >::innerStride | ( | ) | const [inline] |
EIGEN_DEVICE_FUNC Index Eigen::RefBase< Derived >::outerStride | ( | ) | const [inline] |
StrideBase Eigen::RefBase< Derived >::m_stride [protected] |