|
| enum | { Options = _Options
} |
| |
| typedef MappedSparseMatrix< Scalar, Flags > | Map |
| |
| enum | |
| |
| typedef internal::traits< DynamicSparseMatrix< _Scalar, _Options, _StorageIndex > >::Scalar | Scalar |
| |
| typedef Scalar | value_type |
| |
| typedef internal::packet_traits< Scalar >::type | PacketScalar |
| |
| typedef internal::traits< DynamicSparseMatrix< _Scalar, _Options, _StorageIndex > >::StorageKind | StorageKind |
| |
| typedef internal::traits< DynamicSparseMatrix< _Scalar, _Options, _StorageIndex > >::StorageIndex | StorageIndex |
| |
| typedef internal::add_const_on_value_type_if_arithmetic< typenameinternal::packet_traits< Scalar >::type >::type | PacketReturnType |
| |
| typedef SparseMatrixBase | StorageBaseType |
| |
| typedef Matrix< StorageIndex, Dynamic, 1 > | IndexVector |
| |
| typedef Matrix< Scalar, Dynamic, 1 > | ScalarVector |
| |
| typedef internal::conditional< NumTraits< Scalar >::IsComplex, CwiseUnaryOp< internal::scalar_conjugate_op< Scalar >, Eigen::Transpose< constDerived > >, Transpose< constDerived > >::type | AdjointReturnType |
| |
| typedef Transpose< DynamicSparseMatrix< _Scalar, _Options, _StorageIndex > > | TransposeReturnType |
| |
| typedef internal::add_const< Transpose< constDerived > >::type | ConstTransposeReturnType |
| |
| typedef SparseMatrix< Scalar, Flags &RowMajorBit ? RowMajor :ColMajor, StorageIndex > | PlainObject |
| |
| typedef NumTraits< Scalar >::Real | RealScalar |
| |
| typedef internal::conditional< _HasDirectAccess, constScalar &, Scalar >::type | CoeffReturnType |
| |
| typedef CwiseNullaryOp< internal::scalar_constant_op< Scalar >, Matrix< Scalar, Dynamic, Dynamic > > | ConstantReturnType |
| |
| typedef Matrix< Scalar, RowsAtCompileTime, ColsAtCompileTime > | DenseMatrixType |
| |
| typedef Matrix< Scalar, EIGEN_SIZE_MAX(RowsAtCompileTime, ColsAtCompileTime), EIGEN_SIZE_MAX(RowsAtCompileTime, ColsAtCompileTime)> | SquareMatrixType |
| |
| typedef EigenBase< DynamicSparseMatrix< _Scalar, _Options, _StorageIndex > > | Base |
| |
| typedef Eigen::Index | Index |
| | The interface type of indices.
|
| |
| typedef internal::traits< Derived >::StorageKind | StorageKind |
| |
|
| Index | rows () const |
| |
| Index | cols () const |
| |
| Index | innerSize () const |
| |
| Index | outerSize () const |
| |
| Index | innerNonZeros (Index j) const |
| |
| std::vector< internal::CompressedStorage< Scalar, StorageIndex > > & | _data () |
| |
| const std::vector< internal::CompressedStorage< Scalar, StorageIndex > > & | _data () const |
| |
| Scalar | coeff (Index row, Index col) const |
| |
| Scalar & | coeffRef (Index row, Index col) |
| |
| void | setZero () |
| |
| Index | nonZeros () const |
| |
| void | reserve (Index reserveSize=1000) |
| |
| void | startVec (Index) |
| |
| Scalar & | insertBack (Index row, Index col) |
| |
| Scalar & | insertBackByOuterInner (Index outer, Index inner) |
| |
| Scalar & | insert (Index row, Index col) |
| |
| void | finalize () |
| |
| void | prune (Scalar reference, RealScalar epsilon=NumTraits< RealScalar >::dummy_precision()) |
| |
| void | resize (Index rows, Index cols) |
| |
| void | resizeAndKeepData (Index rows, Index cols) |
| |
| EIGEN_DEPRECATED | DynamicSparseMatrix () |
| |
| EIGEN_DEPRECATED | DynamicSparseMatrix (Index rows, Index cols) |
| |
| template<typename OtherDerived > |
| EIGEN_DEPRECATED | DynamicSparseMatrix (const SparseMatrixBase< OtherDerived > &other) |
| |
| | DynamicSparseMatrix (const DynamicSparseMatrix &other) |
| |
| void | swap (DynamicSparseMatrix &other) |
| |
| DynamicSparseMatrix & | operator= (const DynamicSparseMatrix &other) |
| |
| | ~DynamicSparseMatrix () |
| |
| EIGEN_DEPRECATED void | startFill (Index reserveSize=1000) |
| |
| EIGEN_DEPRECATED Scalar & | fill (Index row, Index col) |
| |
| EIGEN_DEPRECATED Scalar & | fillrand (Index row, Index col) |
| |
| EIGEN_DEPRECATED void | endFill () |
| |
| 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) |
| |
| Derived & | operator= (const Derived &other) |
| |
| DynamicSparseMatrix< _Scalar, _Options, _StorageIndex > & | operator= (const EigenBase< OtherDerived > &other) |
| |
| DynamicSparseMatrix< _Scalar, _Options, _StorageIndex > & | operator= (const ReturnByValue< OtherDerived > &other) |
| |
| DynamicSparseMatrix< _Scalar, _Options, _StorageIndex > & | operator= (const SparseMatrixBase< OtherDerived > &other) |
| |
| DynamicSparseMatrix< _Scalar, _Options, _StorageIndex > & | operator= (const DynamicSparseMatrix< _Scalar, _Options, _StorageIndex > &other) |
| |
| const DynamicSparseMatrix< _Scalar, _Options, _StorageIndex > & | derived () const |
| |
| DynamicSparseMatrix< _Scalar, _Options, _StorageIndex > & | derived () |
| |
| DynamicSparseMatrix< _Scalar, _Options, _StorageIndex > & | const_cast_derived () const |
| |
| Index | rows () const |
| |
| Index | cols () const |
| |
| Index | size () const |
| |
| bool | isVector () const |
| |
| Index | outerSize () const |
| |
| Index | innerSize () const |
| |
| bool | isRValue () const |
| |
| DynamicSparseMatrix< _Scalar, _Options, _StorageIndex > & | markAsRValue () |
| |
| | SparseMatrixBase () |
| |
| DynamicSparseMatrix< _Scalar, _Options, _StorageIndex > & | operator+= (const SparseMatrixBase< OtherDerived > &other) |
| |
| DynamicSparseMatrix< _Scalar, _Options, _StorageIndex > & | operator+= (const DiagonalBase< OtherDerived > &other) |
| |
| DynamicSparseMatrix< _Scalar, _Options, _StorageIndex > & | operator+= (const EigenBase< OtherDerived > &other) |
| |
| EIGEN_STRONG_INLINE DynamicSparseMatrix< _Scalar, _Options, _StorageIndex > & | operator+= (const SparseMatrixBase< OtherDerived > &other) |
| |
| DynamicSparseMatrix< _Scalar, _Options, _StorageIndex > & | operator-= (const SparseMatrixBase< OtherDerived > &other) |
| |
| DynamicSparseMatrix< _Scalar, _Options, _StorageIndex > & | operator-= (const DiagonalBase< OtherDerived > &other) |
| |
| DynamicSparseMatrix< _Scalar, _Options, _StorageIndex > & | operator-= (const EigenBase< OtherDerived > &other) |
| |
| EIGEN_STRONG_INLINE DynamicSparseMatrix< _Scalar, _Options, _StorageIndex > & | operator-= (const SparseMatrixBase< OtherDerived > &other) |
| |
| DynamicSparseMatrix< _Scalar, _Options, _StorageIndex > & | operator*= (const Scalar &other) |
| |
| DynamicSparseMatrix< _Scalar, _Options, _StorageIndex > & | operator*= (const SparseMatrixBase< OtherDerived > &other) |
| |
| DynamicSparseMatrix< _Scalar, _Options, _StorageIndex > & | operator/= (const Scalar &other) |
| |
| EIGEN_STRONG_INLINE const CwiseProductDenseReturnType< OtherDerived >::Type | cwiseProduct (const MatrixBase< OtherDerived > &other) const |
| |
| EIGEN_STRONG_INLINE const SparseMatrixBase< DynamicSparseMatrix< _Scalar, _Options, _StorageIndex > >::template CwiseProductDenseReturnType< OtherDerived >::Type | cwiseProduct (const MatrixBase< OtherDerived > &other) const |
| |
| const Product< DynamicSparseMatrix< _Scalar, _Options, _StorageIndex >, OtherDerived > | operator* (const DiagonalBase< OtherDerived > &other) const |
| |
| const Product< DynamicSparseMatrix< _Scalar, _Options, _StorageIndex >, OtherDerived, AliasFreeProduct > | operator* (const SparseMatrixBase< OtherDerived > &other) const |
| |
| const Product< DynamicSparseMatrix< _Scalar, _Options, _StorageIndex >, OtherDerived > | operator* (const MatrixBase< OtherDerived > &other) const |
| |
| SparseSymmetricPermutationProduct< DynamicSparseMatrix< _Scalar, _Options, _StorageIndex >, Upper|Lower > | twistedBy (const PermutationMatrix< Dynamic, Dynamic, StorageIndex > &perm) const |
| |
| const TriangularView< const DynamicSparseMatrix< _Scalar, _Options, _StorageIndex >, Mode > | triangularView () const |
| |
| ConstSelfAdjointViewReturnType< UpLo >::Type | selfadjointView () const |
| |
| SelfAdjointViewReturnType< UpLo >::Type | selfadjointView () |
| |
| SparseMatrixBase< DynamicSparseMatrix< _Scalar, _Options, _StorageIndex > >::template ConstSelfAdjointViewReturnType< UpLo >::Type | selfadjointView () const |
| |
| SparseMatrixBase< DynamicSparseMatrix< _Scalar, _Options, _StorageIndex > >::template SelfAdjointViewReturnType< UpLo >::Type | selfadjointView () |
| |
| Scalar | dot (const MatrixBase< OtherDerived > &other) const |
| |
| Scalar | dot (const SparseMatrixBase< OtherDerived > &other) const |
| |
| internal::traits< DynamicSparseMatrix< _Scalar, _Options, _StorageIndex > >::Scalar | dot (const MatrixBase< OtherDerived > &other) const |
| |
| internal::traits< DynamicSparseMatrix< _Scalar, _Options, _StorageIndex > >::Scalar | dot (const SparseMatrixBase< OtherDerived > &other) const |
| |
| RealScalar | squaredNorm () const |
| |
| RealScalar | norm () const |
| |
| RealScalar | blueNorm () const |
| |
| TransposeReturnType | transpose () |
| |
| const ConstTransposeReturnType | transpose () const |
| |
| const AdjointReturnType | adjoint () const |
| |
| DenseMatrixType | toDense () const |
| |
| bool | isApprox (const SparseMatrixBase< OtherDerived > &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
| |
| bool | isApprox (const MatrixBase< OtherDerived > &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
| |
| const internal::eval< DynamicSparseMatrix< _Scalar, _Options, _StorageIndex > >::type | eval () const |
| |
| Scalar | sum () const |
| |
| const SparseView< DynamicSparseMatrix< _Scalar, _Options, _StorageIndex > > | pruned (const Scalar &reference=Scalar(0), const RealScalar &epsilon=NumTraits< Scalar >::dummy_precision()) const |
| |
| EIGEN_DEVICE_FUNC Derived & | derived () |
| |
| EIGEN_DEVICE_FUNC const Derived & | derived () const |
| |
| EIGEN_DEVICE_FUNC Derived & | const_cast_derived () const |
| |
| EIGEN_DEVICE_FUNC const Derived & | const_derived () const |
| |
| EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index | rows () const EIGEN_NOEXCEPT |
| |
| EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index | cols () const EIGEN_NOEXCEPT |
| |
| EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index | size () const EIGEN_NOEXCEPT |
| |
| template<typename Dest > |
| EIGEN_DEVICE_FUNC void | evalTo (Dest &dst) const |
| |
| template<typename Dest > |
| EIGEN_DEVICE_FUNC void | addTo (Dest &dst) const |
| |
| template<typename Dest > |
| EIGEN_DEVICE_FUNC void | subTo (Dest &dst) const |
| |
| template<typename Dest > |
| EIGEN_DEVICE_FUNC void | applyThisOnTheRight (Dest &dst) const |
| |
| template<typename Dest > |
| EIGEN_DEVICE_FUNC void | applyThisOnTheLeft (Dest &dst) const |
| |
template<typename _Scalar,
int _Options, typename _StorageIndex>
class Eigen::DynamicSparseMatrix< _Scalar, _Options, _StorageIndex >
A sparse matrix class designed for matrix assembly purpose.
- Deprecated:
- use a SparseMatrix in an uncompressed mode
- Parameters
-
| _Scalar | the scalar type, i.e. the type of the coefficients |
Unlike SparseMatrix, this class provides a much higher degree of flexibility. In particular, it allows random read/write accesses in log(rho*outer_size) where rho is the probability that a coefficient is nonzero and outer_size is the number of columns if the matrix is column-major and the number of rows otherwise.
Internally, the data are stored as a std::vector of compressed vector. The performances of random writes might decrease as the number of nonzeros per inner-vector increase. In practice, we observed very good performance till about 100 nonzeros/vector, and the performance remains relatively good till 500 nonzeros/vectors.
- See also
- SparseMatrix