Specialization of class Map for SparseMatrix-like storage. More...
Inheritance diagram for Eigen::Map< SparseMatrixType >:Public Member Functions | |
| Map (Index rows, Index cols, Index nnz, const StorageIndex *outerIndexPtr, const StorageIndex *innerIndexPtr, const Scalar *valuePtr, const StorageIndex *innerNonZerosPtr=0) | |
| Map (Index rows, Index cols, Index nnz, StorageIndex *outerIndexPtr, StorageIndex *innerIndexPtr, Scalar *valuePtr, StorageIndex *innerNonZerosPtr=0) | |
| ~Map () | |
Public Member Functions inherited from Eigen::SparseMapBase< Derived, WriteAccessors > | |
| Scalar & | coeffRef (Index row, Index col) |
| StorageIndex * | innerIndexPtr () |
| StorageIndex * | innerNonZeroPtr () |
| Derived & | operator= (const Derived &other) |
| template<typename OtherDerived > | |
| Derived & | operator= (const EigenBase< OtherDerived > &other) |
| template<typename OtherDerived > | |
| Derived & | operator= (const ReturnByValue< OtherDerived > &other) |
| template<typename OtherDerived > | |
| Derived & | operator= (const SparseMatrixBase< OtherDerived > &other) |
| StorageIndex * | outerIndexPtr () |
| SparseMapBase (Index rows, Index cols, Index nnz, StorageIndex *outerIndexPtr, StorageIndex *innerIndexPtr, Scalar *valuePtr, StorageIndex *innerNonZerosPtr=0) | |
| SparseMapBase (Index size, Index nnz, StorageIndex *innerIndexPtr, Scalar *valuePtr) | |
| Scalar * | valuePtr () |
| ~SparseMapBase () | |
Public Member Functions inherited from Eigen::SparseMapBase< Derived, ReadOnlyAccessors > | |
| Scalar | coeff (Index row, Index col) const |
| Index | cols () const |
| const StorageIndex * | innerIndexPtr () const |
| const StorageIndex * | innerNonZeroPtr () const |
| Index | innerSize () const |
| bool | isCompressed () const |
| Index | nonZeros () const |
| Derived & | operator= (const Derived &other) |
| template<typename OtherDerived > | |
| Derived & | operator= (const EigenBase< OtherDerived > &other) |
| template<typename OtherDerived > | |
| Derived & | operator= (const ReturnByValue< OtherDerived > &other) |
| template<typename OtherDerived > | |
| Derived & | operator= (const SparseMatrixBase< OtherDerived > &other) |
| const StorageIndex * | outerIndexPtr () const |
| Index | outerSize () const |
| Index | rows () const |
| SparseMapBase (Index rows, Index cols, Index nnz, IndexPointer outerIndexPtr, IndexPointer innerIndexPtr, ScalarPointer valuePtr, IndexPointer innerNonZerosPtr=0) | |
| SparseMapBase (Index size, Index nnz, IndexPointer innerIndexPtr, ScalarPointer valuePtr) | |
| const Scalar * | valuePtr () const |
| ~SparseMapBase () | |
Public Member Functions inherited from Eigen::SparseCompressedBase< Derived > | |
| Map< Array< Scalar, Dynamic, 1 > > | coeffs () |
| const Map< const Array< Scalar, Dynamic, 1 > > | coeffs () const |
| StorageIndex * | innerIndexPtr () |
| const StorageIndex * | innerIndexPtr () const |
| template<class Comp = std::less<>> | |
| Index | innerIndicesAreSorted () const |
| template<class Comp = std::less<>> | |
| Index | innerIndicesAreSorted (Index begin, Index end) const |
| StorageIndex * | innerNonZeroPtr () |
| const StorageIndex * | innerNonZeroPtr () const |
| bool | isCompressed () const |
| Index | nonZeros () const |
| Derived & | operator= (const Derived &other) |
| template<typename OtherDerived > | |
| Derived & | operator= (const EigenBase< OtherDerived > &other) |
| template<typename OtherDerived > | |
| Derived & | operator= (const ReturnByValue< OtherDerived > &other) |
| template<typename OtherDerived > | |
| Derived & | operator= (const SparseMatrixBase< OtherDerived > &other) |
| StorageIndex * | outerIndexPtr () |
| const StorageIndex * | outerIndexPtr () const |
| template<class Comp = std::less<>> | |
| void | sortInnerIndices () |
| template<class Comp = std::less<>> | |
| void | sortInnerIndices (Index begin, Index end) |
| Scalar * | valuePtr () |
| const Scalar * | valuePtr () const |
Public Member Functions inherited from Eigen::SparseMatrixBase< Derived > | |
| const AdjointReturnType | adjoint () const |
| RealScalar | blueNorm () const |
| Index | cols () const |
| template<typename OtherDerived > | |
| const SparseMatrixBase< Derived >::template CwiseProductDenseReturnType< OtherDerived >::Type | cwiseProduct (const MatrixBase< OtherDerived > &other) const |
| template<typename OtherDerived > | |
| const CwiseProductDenseReturnType< OtherDerived >::Type | cwiseProduct (const MatrixBase< OtherDerived > &other) const |
| template<typename OtherDerived > | |
| internal::traits< Derived >::Scalar | dot (const MatrixBase< OtherDerived > &other) const |
| template<typename OtherDerived > | |
| Scalar | dot (const MatrixBase< OtherDerived > &other) const |
| template<typename OtherDerived > | |
| internal::traits< Derived >::Scalar | dot (const SparseMatrixBase< OtherDerived > &other) const |
| template<typename OtherDerived > | |
| Scalar | dot (const SparseMatrixBase< OtherDerived > &other) const |
| const internal::eval< Derived >::type | eval () const |
| Index | innerSize () const |
| template<typename OtherDerived > | |
| bool | isApprox (const MatrixBase< OtherDerived > &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
| template<typename OtherDerived > | |
| bool | isApprox (const SparseMatrixBase< OtherDerived > &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
| bool | isRValue () const |
| bool | isVector () const |
| Derived & | markAsRValue () |
| RealScalar | norm () const |
| template<typename OtherDerived > | |
| const Product< Derived, OtherDerived > | operator* (const DiagonalBase< OtherDerived > &other) const |
| template<typename OtherDerived > | |
| const Product< Derived, OtherDerived > | operator* (const MatrixBase< OtherDerived > &other) const |
| template<typename OtherDerived > | |
| const Product< Derived, OtherDerived, AliasFreeProduct > | operator* (const SparseMatrixBase< OtherDerived > &other) const |
| Derived & | operator*= (const Scalar &other) |
| template<typename OtherDerived > | |
| Derived & | operator*= (const SparseMatrixBase< OtherDerived > &other) |
| template<typename OtherDerived > | |
| Derived & | operator+= (const DiagonalBase< OtherDerived > &other) |
| template<typename OtherDerived > | |
| Derived & | operator+= (const EigenBase< OtherDerived > &other) |
| template<typename OtherDerived > | |
| Derived & | operator+= (const SparseMatrixBase< OtherDerived > &other) |
| template<typename OtherDerived > | |
| Derived & | operator-= (const DiagonalBase< OtherDerived > &other) |
| template<typename OtherDerived > | |
| Derived & | operator-= (const EigenBase< OtherDerived > &other) |
| template<typename OtherDerived > | |
| Derived & | operator-= (const SparseMatrixBase< OtherDerived > &other) |
| Derived & | operator/= (const Scalar &other) |
| Derived & | operator= (const Derived &other) |
| template<typename OtherDerived > | |
| Derived & | operator= (const EigenBase< OtherDerived > &other) |
| template<typename OtherDerived > | |
| Derived & | operator= (const ReturnByValue< OtherDerived > &other) |
| template<typename OtherDerived > | |
| Derived & | operator= (const SparseMatrixBase< OtherDerived > &other) |
| Index | outerSize () const |
| const SparseView< Derived > | pruned (const Scalar &reference=Scalar(0), const RealScalar &epsilon=NumTraits< Scalar >::dummy_precision()) const |
| Index | rows () const |
| template<unsigned int UpLo> | |
| SelfAdjointViewReturnType< UpLo >::Type | selfadjointView () |
| template<unsigned int UpLo> | |
| SparseMatrixBase< Derived >::template SelfAdjointViewReturnType< UpLo >::Type | selfadjointView () |
| template<unsigned int UpLo> | |
| ConstSelfAdjointViewReturnType< UpLo >::Type | selfadjointView () const |
| template<unsigned int UpLo> | |
| SparseMatrixBase< Derived >::template ConstSelfAdjointViewReturnType< UpLo >::Type | selfadjointView () const |
| Index | size () const |
| SparseMatrixBase () | |
| RealScalar | squaredNorm () const |
| Scalar | sum () const |
| DenseMatrixType | toDense () const |
| TransposeReturnType | transpose () |
| const ConstTransposeReturnType | transpose () const |
| template<int Mode> | |
| const TriangularView< const Derived, Mode > | triangularView () const |
| SparseSymmetricPermutationProduct< Derived, Upper|Lower > | twistedBy (const PermutationMatrix< Dynamic, Dynamic, StorageIndex > &perm) const |
Public Member Functions inherited from Eigen::EigenBase< Derived > | |
| template<typename Dest > | |
| void | addTo (Dest &dst) const |
| template<typename Dest > | |
| void | applyThisOnTheLeft (Dest &dst) const |
| template<typename Dest > | |
| void | applyThisOnTheRight (Dest &dst) const |
| EIGEN_CONSTEXPR Index | cols () const EIGEN_NOEXCEPT |
| Derived & | const_cast_derived () const |
| const Derived & | const_derived () const |
| Derived & | derived () |
| const Derived & | derived () const |
| template<typename Dest > | |
| void | evalTo (Dest &dst) const |
| EIGEN_CONSTEXPR Index | rows () const EIGEN_NOEXCEPT |
| EIGEN_CONSTEXPR Index | size () const EIGEN_NOEXCEPT |
| template<typename Dest > | |
| void | subTo (Dest &dst) const |
Additional Inherited Members | |
Protected Types inherited from Eigen::SparseMapBase< Derived, ReadOnlyAccessors > | |
| typedef std::conditional_t< bool(internal::is_lvalue< Derived >::value), StorageIndex *, const StorageIndex * > | IndexPointer |
| typedef std::conditional_t< bool(internal::is_lvalue< Derived >::value), Scalar *, const Scalar * > | ScalarPointer |
Protected Types inherited from Eigen::SparseCompressedBase< Derived > | |
| typedef Base::IndexVector | IndexVector |
Protected Member Functions inherited from Eigen::SparseMapBase< Derived, WriteAccessors > | |
| SparseMapBase () | |
Protected Member Functions inherited from Eigen::SparseMapBase< Derived, ReadOnlyAccessors > | |
| SparseMapBase () | |
Protected Member Functions inherited from Eigen::SparseCompressedBase< Derived > | |
| Eigen::Map< IndexVector > | innerNonZeros () |
| const Eigen::Map< const IndexVector > | innerNonZeros () const |
| internal::LowerBoundIndex | lower_bound (Index row, Index col) const |
| SparseCompressedBase () | |
Protected Member Functions inherited from Eigen::SparseMatrixBase< Derived > | |
| template<typename OtherDerived > | |
| Derived & | assign (const OtherDerived &other) |
| template<typename OtherDerived > | |
| void | assignGeneric (const OtherDerived &other) |
Static Protected Member Functions inherited from Eigen::SparseMatrixBase< Derived > | |
| static StorageIndex | convert_index (const Index idx) |
Protected Attributes inherited from Eigen::SparseMapBase< Derived, ReadOnlyAccessors > | |
| IndexPointer | m_innerIndices |
| IndexPointer | m_innerNonZeros |
| Index | m_innerSize |
| IndexPointer | m_outerIndex |
| Index | m_outerSize |
| ScalarPointer | m_values |
| Array< StorageIndex, 2, 1 > | m_zero_nnz |
Protected Attributes inherited from Eigen::SparseMatrixBase< Derived > | |
| bool | m_isRValue |
Specialization of class Map for SparseMatrix-like storage.
| SparseMatrixType | the equivalent sparse matrix type of the referenced data, it must be a template instance of class SparseMatrix. |
Definition at line 228 of file SparseMap.h.
| typedef SparseMapBase<Map> Eigen::Map< SparseMatrixType >::Base |
Definition at line 233 of file SparseMap.h.
| anonymous enum |
|
inline |
Constructs a read-write Map to a sparse matrix of size rows x cols, containing nnz non-zero coefficients, stored as a sparse format as defined by the pointers outerIndexPtr, innerIndexPtr, and valuePtr. If the optional parameter innerNonZerosPtr is the null pointer, then a standard compressed format is assumed. The inner indices must be sorted appropriately.
This constructor is available only if SparseMatrixType is non-const.
More details on the expected storage schemes are given in the manual pages.
Definition at line 248 of file SparseMap.h.
|
inline |
This is the const version of the above constructor.
This constructor is available only if SparseMatrixType is const, e.g.:
Definition at line 273 of file SparseMap.h.
|
inline |