10 #ifndef EIGEN_CWISE_UNARY_VIEW_H 11 #define EIGEN_CWISE_UNARY_VIEW_H 30 template<
typename ViewOp,
typename MatrixType>
45 InnerStrideAtCompileTime = MatrixTypeInnerStride ==
Dynamic 47 : int(MatrixTypeInnerStride) * int(sizeof(typename
traits<MatrixType>::Scalar) / sizeof(Scalar)),
55 template<
typename ViewOp,
typename MatrixType,
typename StorageKind>
58 template<
typename ViewOp,
typename MatrixType>
67 : m_matrix(mat), m_functor(func) {}
75 const ViewOp&
functor()
const {
return m_functor; }
91 template<
typename ViewOp,
typename MatrixType>
103 inline Scalar* data() {
return &coeffRef(0); }
104 inline const Scalar*
data()
const {
return &coeff(0); }
118 return derived().functor()(derived().nestedExpression().coeff(row, col));
123 return derived().functor()(derived().nestedExpression().coeff(index));
128 return derived().functor()(const_cast_derived().nestedExpression().coeffRef(row, col));
133 return derived().functor()(const_cast_derived().nestedExpression().coeffRef(index));
139 #endif // EIGEN_CWISE_UNARY_VIEW_H #define EIGEN_GENERIC_PUBLIC_INTERFACE(Derived)
const internal::remove_all< typename MatrixType::Nested >::type & nestedExpression() const
Index innerStride() const
#define EIGEN_STRONG_INLINE
const Scalar * data() const
EIGEN_STRONG_INLINE Index cols() const
CwiseUnaryView< ViewOp, MatrixType > Derived
const unsigned int DirectAccessBit
const unsigned int LvalueBit
EIGEN_STRONG_INLINE CoeffReturnType coeff(Index index) const
EIGEN_STRONG_INLINE Scalar & coeffRef(Index index)
iterative scaling algorithm to equilibrate rows and column norms in matrices
const ViewOp & functor() const
#define EIGEN_INHERIT_ASSIGNMENT_OPERATORS(Derived)
Generic lvalue expression of a coefficient-wise unary operator of a matrix or a vector.
const unsigned int HereditaryBits
Index outerStride() const
EIGEN_STRONG_INLINE Scalar & coeffRef(Index row, Index col)
internal::nested< MatrixType >::type m_matrix
EIGEN_STRONG_INLINE CoeffReturnType coeff(Index row, Index col) const
#define EIGEN_DENSE_PUBLIC_INTERFACE(Derived)
remove_all< MatrixTypeNested >::type _MatrixTypeNested
result_of< ViewOp(typename traits< MatrixType >::Scalar) >::type Scalar
CwiseUnaryViewImpl< ViewOp, MatrixType, typename internal::traits< MatrixType >::StorageKind >::Base Base
internal::remove_all< typename MatrixType::Nested >::type & nestedExpression()
internal::dense_xpr_base< CwiseUnaryView< ViewOp, MatrixType > >::type Base
const unsigned int LinearAccessBit
MatrixType::Nested MatrixTypeNested