10 #ifndef EIGEN_SPARSETRANSPOSE_H 11 #define EIGEN_SPARSETRANSPOSE_H 16 template<
typename MatrixType,
int CompressedAccess=
int(MatrixType::Flags&CompressedAccessBit)>
21 template<
typename MatrixType>
28 typedef typename Base::Scalar Scalar;
29 typedef typename Base::StorageIndex StorageIndex;
31 inline Index nonZeros()
const {
return derived().nestedExpression().nonZeros(); }
33 inline const Scalar* valuePtr()
const {
return derived().nestedExpression().valuePtr(); }
34 inline const StorageIndex* innerIndexPtr()
const {
return derived().nestedExpression().innerIndexPtr(); }
35 inline const StorageIndex* outerIndexPtr()
const {
return derived().nestedExpression().outerIndexPtr(); }
36 inline const StorageIndex* innerNonZeroPtr()
const {
return derived().nestedExpression().innerNonZeroPtr(); }
38 inline Scalar* valuePtr() {
return derived().nestedExpression().valuePtr(); }
39 inline StorageIndex* innerIndexPtr() {
return derived().nestedExpression().innerIndexPtr(); }
40 inline StorageIndex* outerIndexPtr() {
return derived().nestedExpression().outerIndexPtr(); }
41 inline StorageIndex* innerNonZeroPtr() {
return derived().nestedExpression().innerNonZeroPtr(); }
54 template<
typename ArgType>
62 inline Index nonZerosEstimate()
const {
63 return m_argImpl.nonZerosEstimate();
70 : EvalIterator(unaryOp.m_argImpl,outer)
73 Index row()
const {
return EvalIterator::col(); }
74 Index col()
const {
return EvalIterator::row(); }
79 Flags = XprType::Flags
92 #endif // EIGEN_SPARSETRANSPOSE_H Definition: Transpose.h:37
const unsigned int CompressedAccessBit
Means that the underlying coefficients can be accessed through pointers to the sparse (un)compressed ...
Definition: Constants.h:186
Definition: SparseTranspose.h:17
Expression of the transpose of a matrix.
Definition: Transpose.h:52
Definition: CoreEvaluators.h:90
Definition: CoreEvaluators.h:65
Namespace containing all symbols from the Eigen library.
Definition: bench_norm.cpp:85
EIGEN_DEVICE_FUNC RowXpr row(Index i)
Definition: SparseMatrixBase.h:860
Eigen::Index Index
The interface type of indices.
Definition: EigenBase.h:37
EIGEN_DEVICE_FUNC const internal::remove_all< MatrixTypeNested >::type & nestedExpression() const
Definition: Transpose.h:74
Definition: Constants.h:529
Definition: CoreEvaluators.h:109
Base class of any sparse matrices or sparse expressions.
Definition: ForwardDeclarations.h:281
This stores expression Flags flags which may or may not be inherited by new expressions constructed f...
Definition: SparseMatrixBase.h:86
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:33
EIGEN_DEVICE_FUNC ColXpr col(Index i)
Definition: SparseMatrixBase.h:839
The type used to identify a general sparse storage.
Definition: Constants.h:494
Definition: BandTriangularSolver.h:13
Common base class for sparse [compressed]-{row|column}-storage format.
Definition: SparseCompressedBase.h:15
EIGEN_DEVICE_FUNC Derived & derived()
Definition: EigenBase.h:44
An InnerIterator allows to loop over the element of any matrix expression.
Definition: CoreIterators.h:33