A sparse matrix class designed for matrix assembly purpose.
| _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.

Classes | |
| class | InnerIterator |
Public Types | |
| enum | { Options = _Options } |
| typedef MappedSparseMatrix < Scalar, Flags > | Map |
| enum | |
| typedef internal::traits < Derived >::Scalar | Scalar |
| typedef internal::packet_traits < Scalar >::type | PacketScalar |
| typedef internal::traits < Derived >::StorageKind | StorageKind |
| typedef internal::traits < Derived >::Index | Index |
| typedef SparseMatrixBase | StorageBaseType |
| typedef EigenBase< Derived > | Base |
| typedef internal::conditional < NumTraits< Scalar > ::IsComplex, CwiseUnaryOp < internal::scalar_conjugate_op < Scalar >, Eigen::Transpose < const Derived > >, Transpose < const Derived > >::type | AdjointReturnType |
| typedef SparseMatrix< Scalar, Flags &RowMajorBit?RowMajor:ColMajor > | PlainObject |
Public Member Functions | |
| Index | rows () const |
| Index | cols () const |
| Index | innerSize () const |
| Index | outerSize () const |
| Index | innerNonZeros (Index j) const |
| std::vector< CompressedStorage < Scalar, Index > > & | _data () |
| const std::vector < CompressedStorage< Scalar, Index > > & | _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) |
| Does nothing: provided for compatibility with SparseMatrix. | |
| Scalar & | insertBack (Index row, Index col) |
| Scalar & | insertBackByOuterInner (Index outer, Index inner) |
| Scalar & | insert (Index row, Index col) |
| void | finalize () |
| Does nothing: provided for compatibility with SparseMatrix. | |
| void | prune (Scalar reference, RealScalar epsilon=NumTraits< RealScalar >::dummy_precision()) |
| Suppress all nonzeros which are smaller than reference under the tolerence epsilon. | |
| void | resize (Index rows, Index cols) |
| Resize the matrix without preserving the data (the matrix is set to zero) | |
| void | resizeAndKeepData (Index rows, Index cols) |
| DynamicSparseMatrix () | |
| DynamicSparseMatrix (Index rows, Index cols) | |
| template<typename OtherDerived > | |
| DynamicSparseMatrix (const SparseMatrixBase< OtherDerived > &other) | |
| DynamicSparseMatrix (const DynamicSparseMatrix &other) | |
| void | swap (DynamicSparseMatrix &other) |
| DynamicSparseMatrix & | operator= (const DynamicSparseMatrix &other) |
| ~DynamicSparseMatrix () | |
| Destructor. | |
| 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 () |
| const CwiseUnaryOp < internal::scalar_opposite_op < typename internal::traits < Derived >::Scalar >, const Derived > | operator- () const |
| const ScalarMultipleReturnType | operator* (const Scalar &scalar) const |
| const ScalarMultipleReturnType | operator* (const RealScalar &scalar) const |
| const CwiseUnaryOp < internal::scalar_multiple2_op < Scalar, std::complex< Scalar > >, const Derived > | operator* (const std::complex< Scalar > &scalar) const |
| Overloaded for efficient real matrix times complex scalar value. | |
| const SparseSparseProductReturnType < Derived, OtherDerived > ::Type | operator* (const SparseMatrixBase< OtherDerived > &other) const |
| const SparseDiagonalProduct < Derived, OtherDerived > | operator* (const DiagonalBase< OtherDerived > &other) const |
| const SparseDenseProductReturnType < Derived, OtherDerived > ::Type | operator* (const MatrixBase< OtherDerived > &other) const |
| sparse * dense (returns a dense object unless it is an outer product) | |
| const CwiseUnaryOp < internal::scalar_quotient1_op < typename internal::traits < Derived >::Scalar >, const Derived > | operator/ (const Scalar &scalar) const |
| internal::cast_return_type < Derived, const CwiseUnaryOp < internal::scalar_cast_op < typename internal::traits < Derived >::Scalar, NewType > , const Derived > >::type | cast () const |
| ConjugateReturnType | conjugate () const |
| RealReturnType | real () const |
| NonConstRealReturnType | real () |
| const ImagReturnType | imag () const |
| NonConstImagReturnType | imag () |
| const CwiseUnaryOp < CustomUnaryOp, const Derived > | unaryExpr (const CustomUnaryOp &func=CustomUnaryOp()) const |
| Apply a unary operator coefficient-wise. | |
| const CwiseUnaryView < CustomViewOp, const Derived > | unaryViewExpr (const CustomViewOp &func=CustomViewOp()) const |
| EIGEN_STRONG_INLINE const CwiseBinaryOp< CustomBinaryOp, const Derived, const OtherDerived > | binaryExpr (const EIGEN_CURRENT_STORAGE_BASE_CLASS< OtherDerived > &other, const CustomBinaryOp &func=CustomBinaryOp()) const |
| EIGEN_STRONG_INLINE const CwiseUnaryOp < internal::scalar_abs_op < Scalar >, const Derived > | cwiseAbs () const |
| EIGEN_STRONG_INLINE const CwiseUnaryOp < internal::scalar_abs2_op < Scalar >, const Derived > | cwiseAbs2 () const |
| const CwiseUnaryOp < internal::scalar_sqrt_op < Scalar >, const Derived > | cwiseSqrt () const |
| const CwiseUnaryOp < internal::scalar_inverse_op < Scalar >, const Derived > | cwiseInverse () const |
| const CwiseUnaryOp < std::binder1st < std::equal_to< Scalar > >, const Derived > | cwiseEqual (const Scalar &s) const |
| const CwiseBinaryOp < std::equal_to< Scalar > , const Derived, const OtherDerived > | cwiseEqual (const EIGEN_CURRENT_STORAGE_BASE_CLASS< OtherDerived > &other) const |
| EIGEN_STRONG_INLINE const | EIGEN_CWISE_PRODUCT_RETURN_TYPE (Derived, OtherDerived) cwiseProduct(const EIGEN_CURRENT_STORAGE_BASE_CLASS< OtherDerived > &other) const |
| const CwiseBinaryOp < std::not_equal_to< Scalar > , const Derived, const OtherDerived > | cwiseNotEqual (const EIGEN_CURRENT_STORAGE_BASE_CLASS< OtherDerived > &other) const |
| EIGEN_STRONG_INLINE const CwiseBinaryOp < internal::scalar_min_op < Scalar >, const Derived, const OtherDerived > | cwiseMin (const EIGEN_CURRENT_STORAGE_BASE_CLASS< OtherDerived > &other) const |
| EIGEN_STRONG_INLINE const CwiseBinaryOp < internal::scalar_max_op < Scalar >, const Derived, const OtherDerived > | cwiseMax (const EIGEN_CURRENT_STORAGE_BASE_CLASS< OtherDerived > &other) const |
| EIGEN_STRONG_INLINE const CwiseBinaryOp < internal::scalar_quotient_op < Scalar >, const Derived, const OtherDerived > | cwiseQuotient (const EIGEN_CURRENT_STORAGE_BASE_CLASS< OtherDerived > &other) const |
| Index | size () const |
| bool | isVector () const |
| bool | isRValue () const |
| Derived & | markAsRValue () |
| void | assignGeneric (const OtherDerived &other) |
| void | _experimentalNewProduct (const Lhs &lhs, const Rhs &rhs) |
| Derived & | operator+= (const SparseMatrixBase< OtherDerived > &other) |
| Derived & | operator-= (const SparseMatrixBase< OtherDerived > &other) |
| Derived & | operator*= (const Scalar &other) |
| Derived & | operator*= (const SparseMatrixBase< OtherDerived > &other) |
| Derived & | operator/= (const Scalar &other) |
| EIGEN_STRONG_INLINE const EIGEN_SPARSE_CWISE_PRODUCT_RETURN_TYPE | cwiseProduct (const MatrixBase< OtherDerived > &other) const |
| const SparseTriangularView < Derived, Mode > | triangularView () const |
| const SparseSelfAdjointView < Derived, UpLo > | selfadjointView () const |
| SparseSelfAdjointView< Derived, UpLo > | selfadjointView () |
| Scalar | dot (const MatrixBase< OtherDerived > &other) const |
| Scalar | dot (const SparseMatrixBase< OtherDerived > &other) const |
| RealScalar | squaredNorm () const |
| RealScalar | norm () const |
| Transpose< Derived > | transpose () |
| const Transpose< const Derived > | transpose () const |
| const AdjointReturnType | adjoint () const |
| SparseInnerVectorSet< Derived, 1 > | row (Index i) |
| const SparseInnerVectorSet < Derived, 1 > | row (Index i) const |
| SparseInnerVectorSet< Derived, 1 > | col (Index j) |
| const SparseInnerVectorSet < Derived, 1 > | col (Index j) const |
| SparseInnerVectorSet< Derived, 1 > | innerVector (Index outer) |
| const SparseInnerVectorSet < Derived, 1 > | innerVector (Index outer) const |
| SparseInnerVectorSet< Derived, Dynamic > | subrows (Index start, Index size) |
| const SparseInnerVectorSet < Derived, Dynamic > | subrows (Index start, Index size) const |
| SparseInnerVectorSet< Derived, Dynamic > | subcols (Index start, Index size) |
| const SparseInnerVectorSet < Derived, Dynamic > | subcols (Index start, Index size) const |
| SparseInnerVectorSet< Derived, Dynamic > | innerVectors (Index outerStart, Index outerSize) |
| const SparseInnerVectorSet < Derived, Dynamic > | innerVectors (Index outerStart, Index outerSize) const |
| void | evalTo (MatrixBase< DenseDerived > &dst) const |
| Matrix< Scalar, RowsAtCompileTime, ColsAtCompileTime > | toDense () const |
| bool | isApprox (const SparseMatrixBase< OtherDerived > &other, RealScalar prec=NumTraits< Scalar >::dummy_precision()) const |
| bool | isApprox (const MatrixBase< OtherDerived > &other, RealScalar prec=NumTraits< Scalar >::dummy_precision()) const |
| const internal::eval< Derived > ::type | eval () const |
| Scalar | sum () const |
Protected Types | |
| typedef DynamicSparseMatrix < Scalar,(Flags &~RowMajorBit)|(IsRowMajor?RowMajorBit:0)> | TransposedSparseMatrix |
Protected Attributes | |
| Index | m_innerSize |
| std::vector< CompressedStorage < Scalar, Index > > | m_data |
| bool | m_isRValue |
Friends | |
| const ScalarMultipleReturnType | operator* (const Scalar &scalar, const StorageBaseType &matrix) |
| const CwiseUnaryOp < internal::scalar_multiple2_op < Scalar, std::complex< Scalar > >, const Derived > | operator* (const std::complex< Scalar > &scalar, const StorageBaseType &matrix) |
| const SparseDiagonalProduct < OtherDerived, Derived > | operator* (const DiagonalBase< OtherDerived > &lhs, const SparseMatrixBase &rhs) |
| const DenseSparseProductReturnType < OtherDerived, Derived > ::Type | operator* (const MatrixBase< OtherDerived > &lhs, const Derived &rhs) |
| dense * sparse (return a dense object unless it is an outer product) | |
| std::ostream & | operator<< (std::ostream &s, const SparseMatrixBase &m) |
typedef internal::conditional<NumTraits<Scalar>::IsComplex, CwiseUnaryOp<internal::scalar_conjugate_op<Scalar>, Eigen::Transpose<const Derived> >, Transpose<const Derived> >::type Eigen::SparseMatrixBase::AdjointReturnType [inherited] |
typedef EigenBase<Derived> Eigen::SparseMatrixBase::Base [inherited] |
typedef internal::traits<Derived>::Index Eigen::SparseMatrixBase::Index [inherited] |
| typedef MappedSparseMatrix<Scalar,Flags> Eigen::DynamicSparseMatrix::Map |
typedef internal::packet_traits<Scalar>::type Eigen::SparseMatrixBase::PacketScalar [inherited] |
typedef SparseMatrix<Scalar, Flags&RowMajorBit ? RowMajor : ColMajor> Eigen::SparseMatrixBase::PlainObject [inherited] |
typedef internal::traits<Derived>::Scalar Eigen::SparseMatrixBase::Scalar [inherited] |
typedef SparseMatrixBase Eigen::SparseMatrixBase::StorageBaseType [inherited] |
typedef internal::traits<Derived>::StorageKind Eigen::SparseMatrixBase::StorageKind [inherited] |
typedef DynamicSparseMatrix<Scalar,(Flags&~RowMajorBit)|(IsRowMajor?RowMajorBit:0)> Eigen::DynamicSparseMatrix::TransposedSparseMatrix [protected] |
| Eigen::DynamicSparseMatrix::DynamicSparseMatrix | ( | const SparseMatrixBase< OtherDerived > & | other | ) | [inline, explicit] |
| Eigen::DynamicSparseMatrix::DynamicSparseMatrix | ( | const DynamicSparseMatrix & | other | ) | [inline] |
| Eigen::DynamicSparseMatrix::~DynamicSparseMatrix | ( | ) | [inline] |
| std::vector<CompressedStorage<Scalar,Index> >& Eigen::DynamicSparseMatrix::_data | ( | ) | [inline] |
| const std::vector<CompressedStorage<Scalar,Index> >& Eigen::DynamicSparseMatrix::_data | ( | ) | const [inline] |
| void Eigen::SparseMatrixBase::_experimentalNewProduct | ( | const Lhs & | lhs, |
| const Rhs & | rhs | ||
| ) | [inline, inherited] |
| const AdjointReturnType Eigen::SparseMatrixBase::adjoint | ( | ) | const [inline, inherited] |
| void Eigen::SparseMatrixBase::assignGeneric | ( | const OtherDerived & | other | ) | [inline, inherited] |
| EIGEN_STRONG_INLINE const CwiseBinaryOp<CustomBinaryOp, const Derived, const OtherDerived> Eigen::SparseMatrixBase::binaryExpr | ( | const EIGEN_CURRENT_STORAGE_BASE_CLASS< OtherDerived > & | other, |
| const CustomBinaryOp & | func = CustomBinaryOp() |
||
| ) | const [inline, inherited] |
*this and other *this and other The template parameter CustomBinaryOp is the type of the functor of the custom operator (see class CwiseBinaryOp for an example)
Here is an example illustrating the use of custom functors:
Output:
| internal::cast_return_type<Derived,const CwiseUnaryOp<internal::scalar_cast_op<typename internal::traits<Derived>::Scalar, NewType>, const Derived> >::type Eigen::SparseMatrixBase::cast | ( | ) | const [inline, inherited] |
| SparseInnerVectorSet<Derived,1> Eigen::SparseMatrixBase::col | ( | Index | j | ) | [inherited] |
*this. For column-major matrix only. | const SparseInnerVectorSet<Derived,1> Eigen::SparseMatrixBase::col | ( | Index | j | ) | const [inherited] |
*this. For column-major matrix only. (read-only version) | Index Eigen::DynamicSparseMatrix::cols | ( | void | ) | const [inline] |
Reimplemented from Eigen::SparseMatrixBase< DynamicSparseMatrix< _Scalar, _Options, _Index > >.
| ConjugateReturnType Eigen::SparseMatrixBase::conjugate | ( | ) | const [inline, inherited] |
| EIGEN_STRONG_INLINE const CwiseUnaryOp<internal::scalar_abs_op<Scalar>, const Derived> Eigen::SparseMatrixBase::cwiseAbs | ( | ) | const [inline, inherited] |
| EIGEN_STRONG_INLINE const CwiseUnaryOp<internal::scalar_abs2_op<Scalar>, const Derived> Eigen::SparseMatrixBase::cwiseAbs2 | ( | ) | const [inline, inherited] |
| const CwiseBinaryOp<std::equal_to<Scalar>, const Derived, const OtherDerived> Eigen::SparseMatrixBase::cwiseEqual | ( | const EIGEN_CURRENT_STORAGE_BASE_CLASS< OtherDerived > & | other | ) | const [inline, inherited] |
Example:
Output:
| const CwiseUnaryOp<std::binder1st<std::equal_to<Scalar> >, const Derived> Eigen::SparseMatrixBase::cwiseEqual | ( | const Scalar & | s | ) | const [inline, inherited] |
*this and a scalar s | const CwiseUnaryOp<internal::scalar_inverse_op<Scalar>, const Derived> Eigen::SparseMatrixBase::cwiseInverse | ( | ) | const [inline, inherited] |
| EIGEN_STRONG_INLINE const CwiseBinaryOp<internal::scalar_max_op<Scalar>, const Derived, const OtherDerived> Eigen::SparseMatrixBase::cwiseMax | ( | const EIGEN_CURRENT_STORAGE_BASE_CLASS< OtherDerived > & | other | ) | const [inline, inherited] |
| EIGEN_STRONG_INLINE const CwiseBinaryOp<internal::scalar_min_op<Scalar>, const Derived, const OtherDerived> Eigen::SparseMatrixBase::cwiseMin | ( | const EIGEN_CURRENT_STORAGE_BASE_CLASS< OtherDerived > & | other | ) | const [inline, inherited] |
| const CwiseBinaryOp<std::not_equal_to<Scalar>, const Derived, const OtherDerived> Eigen::SparseMatrixBase::cwiseNotEqual | ( | const EIGEN_CURRENT_STORAGE_BASE_CLASS< OtherDerived > & | other | ) | const [inline, inherited] |
Example:
Output:
| EIGEN_STRONG_INLINE const EIGEN_SPARSE_CWISE_PRODUCT_RETURN_TYPE Eigen::SparseMatrixBase::cwiseProduct | ( | const MatrixBase< OtherDerived > & | other | ) | const [inherited] |
| EIGEN_STRONG_INLINE const CwiseBinaryOp<internal::scalar_quotient_op<Scalar>, const Derived, const OtherDerived> Eigen::SparseMatrixBase::cwiseQuotient | ( | const EIGEN_CURRENT_STORAGE_BASE_CLASS< OtherDerived > & | other | ) | const [inline, inherited] |
| const CwiseUnaryOp<internal::scalar_sqrt_op<Scalar>, const Derived> Eigen::SparseMatrixBase::cwiseSqrt | ( | ) | const [inline, inherited] |
| Scalar Eigen::SparseMatrixBase::dot | ( | const MatrixBase< OtherDerived > & | other | ) | const [inherited] |
| Scalar Eigen::SparseMatrixBase::dot | ( | const SparseMatrixBase< OtherDerived > & | other | ) | const [inherited] |
| EIGEN_STRONG_INLINE const Eigen::SparseMatrixBase::EIGEN_CWISE_PRODUCT_RETURN_TYPE | ( | Derived | , |
| OtherDerived | |||
| ) | const [inline, inherited] |
| EIGEN_DEPRECATED void Eigen::DynamicSparseMatrix::endFill | ( | ) | [inline] |
Provided for compatibility with SparseMatrix.
| const internal::eval<Derived>::type Eigen::SparseMatrixBase::eval | ( | ) | const [inline, inherited] |
| void Eigen::SparseMatrixBase::evalTo | ( | MatrixBase< DenseDerived > & | dst | ) | const [inline, inherited] |
In other words, assuming *this is column-major, then there must not exists any nonzero coefficient of coordinates i x col such that i >= row. Otherwise the matrix is invalid.
Compared to the generic coeffRef(), the unique limitation is that we assume the coefficient does not exist yet.
| void Eigen::DynamicSparseMatrix::finalize | ( | ) | [inline] |
Does nothing: provided for compatibility with SparseMatrix.
| const ImagReturnType Eigen::SparseMatrixBase::imag | ( | ) | const [inline, inherited] |
| NonConstImagReturnType Eigen::SparseMatrixBase::imag | ( | ) | [inline, inherited] |
| Index Eigen::DynamicSparseMatrix::innerSize | ( | ) | const [inline] |
Reimplemented from Eigen::SparseMatrixBase< DynamicSparseMatrix< _Scalar, _Options, _Index > >.
| SparseInnerVectorSet<Derived,1> Eigen::SparseMatrixBase::innerVector | ( | Index | outer | ) | [inherited] |
*this if *this is col-major (resp. row-major). | const SparseInnerVectorSet<Derived,1> Eigen::SparseMatrixBase::innerVector | ( | Index | outer | ) | const [inherited] |
*this if *this is col-major (resp. row-major). Read-only. | SparseInnerVectorSet<Derived,Dynamic> Eigen::SparseMatrixBase::innerVectors | ( | Index | outerStart, |
| Index | outerSize | ||
| ) | [inherited] |
*this if *this is col-major (resp. row-major). | const SparseInnerVectorSet<Derived,Dynamic> Eigen::SparseMatrixBase::innerVectors | ( | Index | outerStart, |
| Index | outerSize | ||
| ) | const [inherited] |
*this if *this is col-major (resp. row-major). Read-only. | bool Eigen::SparseMatrixBase::isApprox | ( | const SparseMatrixBase< OtherDerived > & | other, |
| RealScalar | prec = NumTraits<Scalar>::dummy_precision() |
||
| ) | const [inline, inherited] |
| bool Eigen::SparseMatrixBase::isApprox | ( | const MatrixBase< OtherDerived > & | other, |
| RealScalar | prec = NumTraits<Scalar>::dummy_precision() |
||
| ) | const [inline, inherited] |
| bool Eigen::SparseMatrixBase::isRValue | ( | ) | const [inline, inherited] |
| bool Eigen::SparseMatrixBase::isVector | ( | ) | const [inline, inherited] |
| Derived& Eigen::SparseMatrixBase::markAsRValue | ( | ) | [inline, inherited] |
| Index Eigen::DynamicSparseMatrix::nonZeros | ( | ) | const [inline] |
Reimplemented from Eigen::SparseMatrixBase< DynamicSparseMatrix< _Scalar, _Options, _Index > >.
| RealScalar Eigen::SparseMatrixBase::norm | ( | ) | const [inherited] |
| const ScalarMultipleReturnType Eigen::SparseMatrixBase::operator* | ( | const Scalar & | scalar | ) | const [inline, inherited] |
| const ScalarMultipleReturnType Eigen::SparseMatrixBase::operator* | ( | const RealScalar & | scalar | ) | const [inherited] |
| const CwiseUnaryOp<internal::scalar_multiple2_op<Scalar,std::complex<Scalar> >, const Derived> Eigen::SparseMatrixBase::operator* | ( | const std::complex< Scalar > & | scalar | ) | const [inline, inherited] |
| const SparseSparseProductReturnType<Derived,OtherDerived>::Type Eigen::SparseMatrixBase::operator* | ( | const SparseMatrixBase< OtherDerived > & | other | ) | const [inherited] |
| const SparseDiagonalProduct<Derived,OtherDerived> Eigen::SparseMatrixBase::operator* | ( | const DiagonalBase< OtherDerived > & | other | ) | const [inherited] |
| const SparseDenseProductReturnType<Derived,OtherDerived>::Type Eigen::SparseMatrixBase::operator* | ( | const MatrixBase< OtherDerived > & | other | ) | const [inherited] |
sparse * dense (returns a dense object unless it is an outer product)
| Derived& Eigen::SparseMatrixBase::operator*= | ( | const Scalar & | other | ) | [inherited] |
| Derived& Eigen::SparseMatrixBase::operator*= | ( | const SparseMatrixBase< OtherDerived > & | other | ) | [inherited] |
| Derived& Eigen::SparseMatrixBase::operator+= | ( | const SparseMatrixBase< OtherDerived > & | other | ) | [inherited] |
| const CwiseUnaryOp<internal::scalar_opposite_op<typename internal::traits<Derived>::Scalar>, const Derived> Eigen::SparseMatrixBase::operator- | ( | ) | const [inline, inherited] |
| Derived& Eigen::SparseMatrixBase::operator-= | ( | const SparseMatrixBase< OtherDerived > & | other | ) | [inherited] |
| const CwiseUnaryOp<internal::scalar_quotient1_op<typename internal::traits<Derived>::Scalar>, const Derived> Eigen::SparseMatrixBase::operator/ | ( | const Scalar & | scalar | ) | const [inline, inherited] |
| Derived& Eigen::SparseMatrixBase::operator/= | ( | const Scalar & | other | ) | [inherited] |
| DynamicSparseMatrix& Eigen::DynamicSparseMatrix::operator= | ( | const DynamicSparseMatrix & | other | ) | [inline] |
| Index Eigen::DynamicSparseMatrix::outerSize | ( | ) | const [inline] |
Reimplemented from Eigen::SparseMatrixBase< DynamicSparseMatrix< _Scalar, _Options, _Index > >.
| RealReturnType Eigen::SparseMatrixBase::real | ( | ) | const [inline, inherited] |
| NonConstRealReturnType Eigen::SparseMatrixBase::real | ( | ) | [inline, inherited] |
| void Eigen::DynamicSparseMatrix::reserve | ( | Index | reserveSize = 1000 | ) | [inline] |
| SparseInnerVectorSet<Derived,1> Eigen::SparseMatrixBase::row | ( | Index | i | ) | [inherited] |
*this. For row-major matrix only. | const SparseInnerVectorSet<Derived,1> Eigen::SparseMatrixBase::row | ( | Index | i | ) | const [inherited] |
*this. For row-major matrix only. (read-only version) | Index Eigen::DynamicSparseMatrix::rows | ( | void | ) | const [inline] |
Reimplemented from Eigen::SparseMatrixBase< DynamicSparseMatrix< _Scalar, _Options, _Index > >.
| const SparseSelfAdjointView<Derived, UpLo> Eigen::SparseMatrixBase::selfadjointView | ( | ) | const [inline, inherited] |
| SparseSelfAdjointView<Derived, UpLo> Eigen::SparseMatrixBase::selfadjointView | ( | ) | [inline, inherited] |
| Index Eigen::SparseMatrixBase::size | ( | ) | const [inline, inherited] |
| RealScalar Eigen::SparseMatrixBase::squaredNorm | ( | ) | const [inherited] |
| EIGEN_DEPRECATED void Eigen::DynamicSparseMatrix::startFill | ( | Index | reserveSize = 1000 | ) | [inline] |
| void Eigen::DynamicSparseMatrix::startVec | ( | Index | ) | [inline] |
Does nothing: provided for compatibility with SparseMatrix.
| SparseInnerVectorSet<Derived,Dynamic> Eigen::SparseMatrixBase::subcols | ( | Index | start, |
| Index | size | ||
| ) | [inherited] |
*this. For column-major matrix only. | const SparseInnerVectorSet<Derived,Dynamic> Eigen::SparseMatrixBase::subcols | ( | Index | start, |
| Index | size | ||
| ) | const [inherited] |
*this. For column-major matrix only. (read-only version) | SparseInnerVectorSet<Derived,Dynamic> Eigen::SparseMatrixBase::subrows | ( | Index | start, |
| Index | size | ||
| ) | [inherited] |
*this. For row-major matrix only. | const SparseInnerVectorSet<Derived,Dynamic> Eigen::SparseMatrixBase::subrows | ( | Index | start, |
| Index | size | ||
| ) | const [inherited] |
*this. For row-major matrix only. (read-only version) | Scalar Eigen::SparseMatrixBase::sum | ( | ) | const [inherited] |
| void Eigen::DynamicSparseMatrix::swap | ( | DynamicSparseMatrix & | other | ) | [inline] |
| Transpose<Derived> Eigen::SparseMatrixBase::transpose | ( | ) | [inline, inherited] |
| const Transpose<const Derived> Eigen::SparseMatrixBase::transpose | ( | ) | const [inline, inherited] |
| const SparseTriangularView<Derived, Mode> Eigen::SparseMatrixBase::triangularView | ( | ) | const [inline, inherited] |
| const CwiseUnaryOp<CustomUnaryOp, const Derived> Eigen::SparseMatrixBase::unaryExpr | ( | const CustomUnaryOp & | func = CustomUnaryOp() | ) | const [inline, inherited] |
Apply a unary operator coefficient-wise.
| [in] | func | Functor implementing the unary operator |
| CustomUnaryOp | Type of func |
The function ptr_fun() from the C++ standard library can be used to make functors out of normal functions.
Example:
Output:
Genuine functors allow for more possibilities, for instance it may contain a state.
Example:
Output:
| const CwiseUnaryView<CustomViewOp, const Derived> Eigen::SparseMatrixBase::unaryViewExpr | ( | const CustomViewOp & | func = CustomViewOp() | ) | const [inline, inherited] |
| const ScalarMultipleReturnType operator* | ( | const Scalar & | scalar, |
| const StorageBaseType & | matrix | ||
| ) | [friend, inherited] |
| const CwiseUnaryOp<internal::scalar_multiple2_op<Scalar,std::complex<Scalar> >, const Derived> operator* | ( | const std::complex< Scalar > & | scalar, |
| const StorageBaseType & | matrix | ||
| ) | [friend, inherited] |
| const SparseDiagonalProduct<OtherDerived,Derived> operator* | ( | const DiagonalBase< OtherDerived > & | lhs, |
| const SparseMatrixBase< DynamicSparseMatrix< _Scalar, _Options, _Index > > & | rhs | ||
| ) | [friend, inherited] |
| const DenseSparseProductReturnType<OtherDerived,Derived>::Type operator* | ( | const MatrixBase< OtherDerived > & | lhs, |
| const Derived & | rhs | ||
| ) | [friend, inherited] |
| std::ostream& operator<< | ( | std::ostream & | s, |
| const SparseMatrixBase< DynamicSparseMatrix< _Scalar, _Options, _Index > > & | m | ||
| ) | [friend, inherited] |
std::vector<CompressedStorage<Scalar,Index> > Eigen::DynamicSparseMatrix::m_data [protected] |
Index Eigen::DynamicSparseMatrix::m_innerSize [protected] |
bool Eigen::SparseMatrixBase::m_isRValue [protected, inherited] |
| Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Thu Oct 13 21:25:36 UTC 2011 |