10 #ifndef EIGEN_CWISE_UNARY_VIEW_H 11 #define EIGEN_CWISE_UNARY_VIEW_H 30 template<
typename ViewOp,
typename MatrixType>
37 typedef typename MatrixType::Nested MatrixTypeNested;
45 InnerStrideAtCompileTime = MatrixTypeInnerStride ==
Dynamic 55 template<
typename ViewOp,
typename MatrixType,
typename StorageKind>
58 template<
typename ViewOp,
typename MatrixType>
67 : m_matrix(mat), m_functor(
func) {}
71 EIGEN_STRONG_INLINE Index rows()
const {
return m_matrix.rows(); }
72 EIGEN_STRONG_INLINE Index cols()
const {
return m_matrix.cols(); }
75 const ViewOp&
functor()
const {
return m_functor; }
91 template<
typename ViewOp,
typename MatrixType>
100 EIGEN_DENSE_PUBLIC_INTERFACE(Derived)
103 inline Scalar* data() {
return &coeffRef(0); }
104 inline const Scalar* data()
const {
return &coeff(0); }
106 inline Index innerStride()
const 111 inline Index outerStride()
const 116 EIGEN_STRONG_INLINE CoeffReturnType coeff(Index row, Index col)
const 118 return derived().functor()(derived().nestedExpression().coeff(row, col));
121 EIGEN_STRONG_INLINE CoeffReturnType coeff(Index index)
const 123 return derived().functor()(derived().nestedExpression().coeff(index));
126 EIGEN_STRONG_INLINE Scalar& coeffRef(Index row, Index col)
128 return derived().functor()(const_cast_derived().nestedExpression().coeffRef(row, col));
131 EIGEN_STRONG_INLINE Scalar& coeffRef(Index index)
133 return derived().functor()(const_cast_derived().nestedExpression().coeffRef(index));
139 #endif // EIGEN_CWISE_UNARY_VIEW_H Definition: gtest_unittest.cc:5031
Definition: DenseCoeffsBase.h:727
const unsigned int DirectAccessBit
Means that the underlying array of coefficients can be directly accessed as a plain strided array...
Definition: Constants.h:142
const unsigned int LvalueBit
Means the expression has a coeffRef() method, i.e.
Definition: Constants.h:131
const ViewOp & functor() const
Definition: CwiseUnaryView.h:75
iterative scaling algorithm to equilibrate rows and column norms in matrices
Definition: TestIMU_Common.h:87
Definition: CwiseUnaryView.h:56
Definition: XprHelper.h:350
const internal::remove_all< typename MatrixType::Nested >::type & nestedExpression() const
Definition: CwiseUnaryView.h:79
Generic lvalue expression of a coefficient-wise unary operator of a matrix or a vector.
Definition: CwiseUnaryView.h:59
Definition: benchGeometry.cpp:23
Definition: BandTriangularSolver.h:13
Definition: XprHelper.h:89
Definition: DenseCoeffsBase.h:739
The type used to identify a dense storage.
Definition: Constants.h:428
const int Dynamic
This value means that a positive quantity (e.g., a size) is not known at compile-time, and that instead the value is stored in some runtime variable.
Definition: Constants.h:21
internal::remove_all< typename MatrixType::Nested >::type & nestedExpression()
Definition: CwiseUnaryView.h:83
const unsigned int LinearAccessBit
Short version: means the expression can be seen as 1D vector.
Definition: Constants.h:117
Definition: ForwardDeclarations.h:17
double Scalar
Common scalar type.
Definition: FlexibleKalmanBase.h:48