10 #ifndef EIGEN_CWISE_UNARY_VIEW_H 11 #define EIGEN_CWISE_UNARY_VIEW_H 16 template<
typename ViewOp,
typename MatrixType>
23 typedef typename MatrixType::Nested MatrixTypeNested;
31 InnerStrideAtCompileTime = MatrixTypeInnerStride ==
Dynamic 41 template<
typename ViewOp,
typename MatrixType,
typename StorageKind>
57 template<
typename ViewOp,
typename MatrixType>
68 : m_matrix(mat), m_functor(
func) {}
72 EIGEN_STRONG_INLINE
Index rows()
const {
return m_matrix.rows(); }
73 EIGEN_STRONG_INLINE
Index cols()
const {
return m_matrix.cols(); }
76 const ViewOp&
functor()
const {
return m_functor; }
87 MatrixTypeNested m_matrix;
92 template<
typename ViewOp,
typename XprType,
typename StorageKind>
100 template<
typename ViewOp,
typename MatrixType>
109 EIGEN_DENSE_PUBLIC_INTERFACE(Derived)
112 EIGEN_DEVICE_FUNC
inline Scalar* data() {
return &(this->coeffRef(0)); }
113 EIGEN_DEVICE_FUNC
inline const Scalar* data()
const {
return &(this->coeff(0)); }
115 EIGEN_DEVICE_FUNC
inline Index innerStride()
const 120 EIGEN_DEVICE_FUNC
inline Index outerStride()
const 128 #endif // EIGEN_CWISE_UNARY_VIEW_H const internal::remove_all< MatrixTypeNested >::type & nestedExpression() const
Definition: CwiseUnaryView.h:80
Definition: DenseCoeffsBase.h:654
const unsigned int DirectAccessBit
Means that the underlying array of coefficients can be directly accessed as a plain strided array...
Definition: Constants.h:150
const unsigned int LvalueBit
Means the expression has a coeffRef() method, i.e.
Definition: Constants.h:139
const ViewOp & functor() const
Definition: CwiseUnaryView.h:76
Namespace containing all symbols from the Eigen library.
Definition: bench_norm.cpp:85
Definition: CwiseUnaryView.h:42
const unsigned int RowMajorBit
for a matrix, this means that the storage order is row-major.
Definition: Constants.h:61
Definition: XprHelper.h:463
Generic lvalue expression of a coefficient-wise unary operator of a matrix or a vector.
Definition: CwiseUnaryView.h:58
internal::remove_reference< MatrixTypeNested >::type & nestedExpression()
Definition: CwiseUnaryView.h:84
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:33
Definition: benchGeometry.cpp:23
Definition: BandTriangularSolver.h:13
Definition: DenseCoeffsBase.h:666
The type used to identify a dense storage.
Definition: Constants.h:491
Definition: XprHelper.h:481
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
Generic expression where a coefficient-wise unary operator is applied to an expression.
Definition: CwiseUnaryOp.h:55
Definition: ForwardDeclarations.h:17
Definition: XprHelper.h:630