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(); }
54template<
typename ArgType>
63 inline Index nonZerosEstimate()
const {
64 return m_argImpl.nonZerosEstimate();
71 : EvalIterator(
unaryOp.m_argImpl,outer)
74 Index row()
const {
return EvalIterator::col(); }
75 Index col()
const {
return EvalIterator::row(); }
78 class ReverseInnerIterator :
public EvalReverseIterator
82 : EvalReverseIterator(
unaryOp.m_argImpl,outer)
85 Index row()
const {
return EvalReverseIterator::col(); }
86 Index col()
const {
return EvalReverseIterator::row(); }
91 Flags = XprType::Flags
94 explicit unary_evaluator(
const XprType& op) :m_argImpl(op.nestedExpression()) {}
An InnerIterator allows to loop over the element of any matrix expression.
Definition CoreIterators.h:34
Pseudo expression representing a solving operation.
Definition Solve.h:63
Definition SparseCompressedBase.h:28
Base class of any sparse matrices or sparse expressions.
Definition SparseMatrixBase.h:34
Definition Transpose.h:104
Expression of the transpose of a matrix.
Definition Transpose.h:55
Definition SparseTranspose.h:19
const unsigned int CompressedAccessBit
Means that the underlying coefficients can be accessed through pointers to the sparse (un)compressed ...
Definition Constants.h:185
Eigen::Index Index
The interface type of indices.
Definition EigenBase.h:37
The type used to identify a general sparse storage.
Definition Constants.h:493
Definition Constants.h:528
Definition CoreEvaluators.h:101
Definition CoreEvaluators.h:82
Definition CoreEvaluators.h:56