10 #ifndef EIGEN_FORCEALIGNEDACCESS_H 11 #define EIGEN_FORCEALIGNEDACCESS_H 29 template<
typename ExpressionType>
44 EIGEN_DEVICE_FUNC
inline Index rows()
const {
return m_expression.rows(); }
45 EIGEN_DEVICE_FUNC
inline Index cols()
const {
return m_expression.cols(); }
46 EIGEN_DEVICE_FUNC
inline Index outerStride()
const {
return m_expression.outerStride(); }
47 EIGEN_DEVICE_FUNC
inline Index innerStride()
const {
return m_expression.innerStride(); }
51 return m_expression.coeff(row, col);
56 return m_expression.const_cast_derived().coeffRef(row, col);
59 EIGEN_DEVICE_FUNC
inline const CoeffReturnType
coeff(
Index index)
const 61 return m_expression.coeff(index);
66 return m_expression.const_cast_derived().coeffRef(index);
69 template<
int LoadMode>
72 return m_expression.template packet<Aligned>(
row,
col);
75 template<
int LoadMode>
78 m_expression.const_cast_derived().template writePacket<Aligned>(
row,
col,
x);
81 template<
int LoadMode>
84 return m_expression.template packet<Aligned>(index);
87 template<
int LoadMode>
90 m_expression.const_cast_derived().template writePacket<Aligned>(index,
x);
93 EIGEN_DEVICE_FUNC
operator const ExpressionType&()
const {
return m_expression; }
105 template<
typename Derived>
115 template<
typename Derived>
125 template<
typename Derived>
126 template<
bool Enable>
136 template<
typename Derived>
137 template<
bool Enable>
146 #endif // EIGEN_FORCEALIGNEDACCESS_H
void writePacket(Index index, const PacketScalar &x)
EIGEN_DEVICE_FUNC Scalar & coeffRef(Index row, Index col)
Enforce aligned packet loads and stores regardless of what is requested.
EIGEN_DEVICE_FUNC Index innerStride() const
const PacketScalar packet(Index index) const
internal::dense_xpr_base< ForceAlignedAccess >::type Base
Namespace containing all symbols from the Eigen library.
const Derived & forceAlignedAccess() const
EIGEN_DEVICE_FUNC Index cols() const
void writePacket(Index row, Index col, const PacketScalar &x)
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
EIGEN_DEVICE_FUNC Scalar & coeffRef(Index index)
EIGEN_DEVICE_FUNC Index rows() const
const Derived & forceAlignedAccessIf() const
const ExpressionType & m_expression
EIGEN_DEVICE_FUNC Index outerStride() const
const PacketScalar packet(Index row, Index col) const
#define EIGEN_DENSE_PUBLIC_INTERFACE(Derived)
EIGEN_DEVICE_FUNC const CoeffReturnType coeff(Index row, Index col) const
Map< Matrix< T, Dynamic, Dynamic, ColMajor >, 0, OuterStride<> > matrix(T *data, int rows, int cols, int stride)
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
EIGEN_DEVICE_FUNC const CoeffReturnType coeff(Index index) const