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;
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>
62 inline Index nonZerosEstimate()
const {
63 return m_argImpl.nonZerosEstimate();
73 Index row()
const {
return EvalIterator::col(); }
74 Index col()
const {
return EvalIterator::row(); }
79 Flags = XprType::Flags
82 explicit unary_evaluator(
const XprType& op) :m_argImpl(op.nestedExpression()) {}
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index nonZeros() const
Definition DenseBase.h:215
An InnerIterator allows to loop over the element of any matrix expression.
Definition CoreIterators.h:34
Base class for all dense matrices, vectors, and expressions.
Definition MatrixBase.h:50
Common base class for sparse [compressed]-{row|column}-storage format.
Definition SparseCompressedBase.h:38
Base class of any sparse matrices or sparse expressions.
Definition SparseMatrixBase.h:28
internal::traits< Derived >::StorageIndex StorageIndex
The integer type used to store indices within a SparseMatrix.
Definition SparseMatrixBase.h:43
Definition Transpose.h:113
Expression of the transpose of a matrix.
Definition Transpose.h:54
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:191
Namespace containing all symbols from the Eigen library.
Definition LDLT.h:16
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition Meta.h:74
Eigen::Index Index
The interface type of indices.
Definition EigenBase.h:39
EIGEN_DEVICE_FUNC Transpose< MatrixType > & derived()
Definition EigenBase.h:46
The type used to identify a general sparse storage.
Definition Constants.h:510
Definition Constants.h:545
Definition CoreEvaluators.h:111
Definition CoreEvaluators.h:91
Definition CoreEvaluators.h:65