a sparse vector class
| _Scalar | the scalar type, i.e. the type of the coefficients |
See http://www.netlib.org/linalg/html_templates/node91.html for details on the storage scheme.
This class can be extended with the help of the plugin mechanism described on the page TopicCustomizingEigen by defining the preprocessor symbol EIGEN_SPARSEVECTOR_PLUGIN.

Classes | |
| class | InnerIterator |
Public Types | |
| enum | { IsColVector = internal::traits<SparseVector>::IsColVector } |
| enum | { Options = _Options } |
| typedef SparseMatrixBase < SparseVector > | SparseBase |
| enum | |
| typedef internal::traits < SparseVector< _Scalar, _Options, _Index > >::Scalar | Scalar |
| typedef internal::packet_traits < Scalar >::type | PacketScalar |
| typedef internal::traits < SparseVector< _Scalar, _Options, _Index > >::StorageKind | StorageKind |
| typedef internal::traits < SparseVector< _Scalar, _Options, _Index > >::Index | Index |
| typedef SparseMatrixBase | StorageBaseType |
| typedef EigenBase < SparseVector< _Scalar, _Options, _Index > > | Base |
| typedef internal::conditional < NumTraits< Scalar > ::IsComplex, CwiseUnaryOp < internal::scalar_conjugate_op < Scalar >, Eigen::Transpose < const SparseVector< _Scalar, _Options, _Index > > >, Transpose< const SparseVector< _Scalar, _Options, _Index > > >::type | AdjointReturnType |
| typedef SparseMatrix< Scalar, Flags &RowMajorBit?RowMajor:ColMajor > | PlainObject |
Public Member Functions | |
| CompressedStorage< Scalar, Index > & | _data () |
| CompressedStorage< Scalar, Index > & | _data () const |
| EIGEN_STRONG_INLINE Index | rows () const |
| EIGEN_STRONG_INLINE Index | cols () const |
| EIGEN_STRONG_INLINE Index | innerSize () const |
| EIGEN_STRONG_INLINE Index | outerSize () const |
| EIGEN_STRONG_INLINE Index | innerNonZeros (Index j) const |
| EIGEN_STRONG_INLINE const Scalar * | _valuePtr () const |
| EIGEN_STRONG_INLINE Scalar * | _valuePtr () |
| EIGEN_STRONG_INLINE const Index * | _innerIndexPtr () const |
| EIGEN_STRONG_INLINE Index * | _innerIndexPtr () |
| Scalar | coeff (Index row, Index col) const |
| Scalar | coeff (Index i) const |
| Scalar & | coeffRef (Index row, Index col) |
| Scalar & | coeffRef (Index i) |
| void | setZero () |
| Index | nonZeros () const |
| void | startVec (Index outer) |
| Scalar & | insertBackByOuterInner (Index outer, Index inner) |
| Scalar & | insertBack (Index i) |
| Scalar & | insert (Index row, Index col) |
| Scalar & | insert (Index i) |
| void | reserve (Index reserveSize) |
| void | finalize () |
| void | prune (Scalar reference, RealScalar epsilon=NumTraits< RealScalar >::dummy_precision()) |
| void | resize (Index rows, Index cols) |
| void | resize (Index newSize) |
| void | resizeNonZeros (Index size) |
| SparseVector () | |
| SparseVector (Index size) | |
| SparseVector (Index rows, Index cols) | |
| template<typename OtherDerived > | |
| SparseVector (const MatrixBase< OtherDerived > &other) | |
| template<typename OtherDerived > | |
| SparseVector (const SparseMatrixBase< OtherDerived > &other) | |
| SparseVector (const SparseVector &other) | |
| void | swap (SparseVector &other) |
| SparseVector & | operator= (const SparseVector &other) |
| template<typename OtherDerived > | |
| SparseVector & | operator= (const SparseMatrixBase< OtherDerived > &other) |
| ~SparseVector () | |
| Destructor. | |
| Scalar | sum () const |
| Overloaded for performance. | |
| EIGEN_DEPRECATED void | startFill (Index reserve) |
| EIGEN_DEPRECATED Scalar & | fill (Index r, Index c) |
| EIGEN_DEPRECATED Scalar & | fill (Index i) |
| EIGEN_DEPRECATED Scalar & | fillrand (Index r, Index c) |
| EIGEN_DEPRECATED Scalar & | fillrand (Index i) |
| EIGEN_DEPRECATED void | endFill () |
| const CwiseUnaryOp < internal::scalar_opposite_op < typename internal::traits < SparseVector< _Scalar, _Options, _Index > >::Scalar > , const SparseVector< _Scalar, _Options, _Index > > | 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 SparseVector < _Scalar, _Options, _Index > > | operator* (const std::complex< Scalar > &scalar) const |
| Overloaded for efficient real matrix times complex scalar value. | |
| const SparseSparseProductReturnType < SparseVector< _Scalar, _Options, _Index > , OtherDerived >::Type | operator* (const SparseMatrixBase< OtherDerived > &other) const |
| const SparseDiagonalProduct < SparseVector< _Scalar, _Options, _Index > , OtherDerived > | operator* (const DiagonalBase< OtherDerived > &other) const |
| const SparseDenseProductReturnType < SparseVector< _Scalar, _Options, _Index > , 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 < SparseVector< _Scalar, _Options, _Index > >::Scalar > , const SparseVector< _Scalar, _Options, _Index > > | operator/ (const Scalar &scalar) const |
| internal::cast_return_type < SparseVector< _Scalar, _Options, _Index >, const CwiseUnaryOp < internal::scalar_cast_op < typename internal::traits < SparseVector< _Scalar, _Options, _Index > >::Scalar, NewType >, const SparseVector < _Scalar, _Options, _Index > > >::type | cast () const |
| ConjugateReturnType | conjugate () const |
| RealReturnType | real () const |
| NonConstRealReturnType | real () |
| const ImagReturnType | imag () const |
| NonConstImagReturnType | imag () |
| const CwiseUnaryOp < CustomUnaryOp, const SparseVector< _Scalar, _Options, _Index > > | unaryExpr (const CustomUnaryOp &func=CustomUnaryOp()) const |
| Apply a unary operator coefficient-wise. | |
| const CwiseUnaryView < CustomViewOp, const SparseVector< _Scalar, _Options, _Index > > | unaryViewExpr (const CustomViewOp &func=CustomViewOp()) const |
| EIGEN_STRONG_INLINE const CwiseBinaryOp< CustomBinaryOp, const SparseVector< _Scalar, _Options, _Index >, 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 SparseVector < _Scalar, _Options, _Index > > | cwiseAbs () const |
| EIGEN_STRONG_INLINE const CwiseUnaryOp < internal::scalar_abs2_op < Scalar >, const SparseVector < _Scalar, _Options, _Index > > | cwiseAbs2 () const |
| const CwiseUnaryOp < internal::scalar_sqrt_op < Scalar >, const SparseVector < _Scalar, _Options, _Index > > | cwiseSqrt () const |
| const CwiseUnaryOp < internal::scalar_inverse_op < Scalar >, const SparseVector < _Scalar, _Options, _Index > > | cwiseInverse () const |
| const CwiseUnaryOp < std::binder1st < std::equal_to< Scalar > >, const SparseVector < _Scalar, _Options, _Index > > | cwiseEqual (const Scalar &s) const |
| const CwiseBinaryOp < std::equal_to< Scalar > , const SparseVector< _Scalar, _Options, _Index >, const OtherDerived > | cwiseEqual (const EIGEN_CURRENT_STORAGE_BASE_CLASS< OtherDerived > &other) const |
| EIGEN_STRONG_INLINE const | EIGEN_CWISE_PRODUCT_RETURN_TYPE (SparseVector< _Scalar, _Options, _Index >, OtherDerived) cwiseProduct(const EIGEN_CURRENT_STORAGE_BASE_CLASS< OtherDerived > &other) const |
| const CwiseBinaryOp < std::not_equal_to< Scalar > , const SparseVector< _Scalar, _Options, _Index >, const OtherDerived > | cwiseNotEqual (const EIGEN_CURRENT_STORAGE_BASE_CLASS< OtherDerived > &other) const |
| EIGEN_STRONG_INLINE const CwiseBinaryOp < internal::scalar_min_op < Scalar >, const SparseVector < _Scalar, _Options, _Index > , const OtherDerived > | cwiseMin (const EIGEN_CURRENT_STORAGE_BASE_CLASS< OtherDerived > &other) const |
| EIGEN_STRONG_INLINE const CwiseBinaryOp < internal::scalar_max_op < Scalar >, const SparseVector < _Scalar, _Options, _Index > , const OtherDerived > | cwiseMax (const EIGEN_CURRENT_STORAGE_BASE_CLASS< OtherDerived > &other) const |
| EIGEN_STRONG_INLINE const CwiseBinaryOp < internal::scalar_quotient_op < Scalar >, const SparseVector < _Scalar, _Options, _Index > , const OtherDerived > | cwiseQuotient (const EIGEN_CURRENT_STORAGE_BASE_CLASS< OtherDerived > &other) const |
| Index | size () const |
| bool | isVector () const |
| bool | isRValue () const |
| SparseVector< _Scalar, _Options, _Index > & | markAsRValue () |
| void | assignGeneric (const OtherDerived &other) |
| void | _experimentalNewProduct (const Lhs &lhs, const Rhs &rhs) |
| SparseVector< _Scalar, _Options, _Index > & | operator+= (const SparseMatrixBase< OtherDerived > &other) |
| SparseVector< _Scalar, _Options, _Index > & | operator-= (const SparseMatrixBase< OtherDerived > &other) |
| SparseVector< _Scalar, _Options, _Index > & | operator*= (const Scalar &other) |
| SparseVector< _Scalar, _Options, _Index > & | operator*= (const SparseMatrixBase< OtherDerived > &other) |
| SparseVector< _Scalar, _Options, _Index > & | operator/= (const Scalar &other) |
| EIGEN_STRONG_INLINE const EIGEN_SPARSE_CWISE_PRODUCT_RETURN_TYPE | cwiseProduct (const MatrixBase< OtherDerived > &other) const |
| const SparseTriangularView < SparseVector< _Scalar, _Options, _Index >, Mode > | triangularView () const |
| const SparseSelfAdjointView < SparseVector< _Scalar, _Options, _Index >, UpLo > | selfadjointView () const |
| SparseSelfAdjointView < SparseVector< _Scalar, _Options, _Index >, UpLo > | selfadjointView () |
| Scalar | dot (const MatrixBase< OtherDerived > &other) const |
| Scalar | dot (const SparseMatrixBase< OtherDerived > &other) const |
| RealScalar | squaredNorm () const |
| RealScalar | norm () const |
| Transpose< SparseVector < _Scalar, _Options, _Index > > | transpose () |
| const Transpose< const SparseVector< _Scalar, _Options, _Index > > | transpose () const |
| const AdjointReturnType | adjoint () const |
| SparseInnerVectorSet < SparseVector< _Scalar, _Options, _Index >, 1 > | row (Index i) |
| const SparseInnerVectorSet < SparseVector< _Scalar, _Options, _Index >, 1 > | row (Index i) const |
| SparseInnerVectorSet < SparseVector< _Scalar, _Options, _Index >, 1 > | col (Index j) |
| const SparseInnerVectorSet < SparseVector< _Scalar, _Options, _Index >, 1 > | col (Index j) const |
| SparseInnerVectorSet < SparseVector< _Scalar, _Options, _Index >, 1 > | innerVector (Index outer) |
| const SparseInnerVectorSet < SparseVector< _Scalar, _Options, _Index >, 1 > | innerVector (Index outer) const |
| SparseInnerVectorSet < SparseVector< _Scalar, _Options, _Index >, Dynamic > | subrows (Index start, Index size) |
| const SparseInnerVectorSet < SparseVector< _Scalar, _Options, _Index >, Dynamic > | subrows (Index start, Index size) const |
| SparseInnerVectorSet < SparseVector< _Scalar, _Options, _Index >, Dynamic > | subcols (Index start, Index size) |
| const SparseInnerVectorSet < SparseVector< _Scalar, _Options, _Index >, Dynamic > | subcols (Index start, Index size) const |
| SparseInnerVectorSet < SparseVector< _Scalar, _Options, _Index >, Dynamic > | innerVectors (Index outerStart, Index outerSize) |
| const SparseInnerVectorSet < SparseVector< _Scalar, _Options, _Index >, Dynamic > | innerVectors (Index outerStart, Index outerSize) const |
| void | evalTo (MatrixBase< DenseDerived > &dst) const |
| void | evalTo (Dest &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 < SparseVector< _Scalar, _Options, _Index > >::type | eval () const |
| SparseVector< _Scalar, _Options, _Index > & | derived () |
| const SparseVector< _Scalar, _Options, _Index > & | derived () const |
| SparseVector< _Scalar, _Options, _Index > & | const_cast_derived () const |
| const SparseVector< _Scalar, _Options, _Index > & | const_derived () const |
| void | addTo (Dest &dst) const |
| void | subTo (Dest &dst) const |
| void | applyThisOnTheRight (Dest &dst) const |
| void | applyThisOnTheLeft (Dest &dst) const |
Public Attributes | |
| CompressedStorage< Scalar, Index > | m_data |
| Index | m_size |
Protected Attributes | |
| bool | m_isRValue |
Friends | |
| std::ostream & | operator<< (std::ostream &s, const SparseVector &m) |
| const ScalarMultipleReturnType | operator* (const Scalar &scalar, const StorageBaseType &matrix) |
| const CwiseUnaryOp < internal::scalar_multiple2_op < Scalar, std::complex< Scalar > >, const SparseVector < _Scalar, _Options, _Index > > | operator* (const std::complex< Scalar > &scalar, const StorageBaseType &matrix) |
| const SparseDiagonalProduct < OtherDerived, SparseVector < _Scalar, _Options, _Index > > | operator* (const DiagonalBase< OtherDerived > &lhs, const SparseMatrixBase &rhs) |
| const DenseSparseProductReturnType < OtherDerived, SparseVector < _Scalar, _Options, _Index > >::Type | operator* (const MatrixBase< OtherDerived > &lhs, const SparseVector< _Scalar, _Options, _Index > &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 SparseVector< _Scalar, _Options, _Index > > >, Transpose<const SparseVector< _Scalar, _Options, _Index > > >::type Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::AdjointReturnType [inherited] |
typedef EigenBase<SparseVector< _Scalar, _Options, _Index > > Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::Base [inherited] |
typedef internal::traits<SparseVector< _Scalar, _Options, _Index > >::Index Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::Index [inherited] |
Reimplemented from Eigen::EigenBase< SparseVector< _Scalar, _Options, _Index > >.
typedef internal::packet_traits<Scalar>::type Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::PacketScalar [inherited] |
typedef SparseMatrix<Scalar, Flags&RowMajorBit ? RowMajor : ColMajor> Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::PlainObject [inherited] |
typedef internal::traits<SparseVector< _Scalar, _Options, _Index > >::Scalar Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::Scalar [inherited] |
| typedef SparseMatrixBase<SparseVector> Eigen::SparseVector< _Scalar, _Options, _Index >::SparseBase |
typedef SparseMatrixBase Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::StorageBaseType [inherited] |
typedef internal::traits<SparseVector< _Scalar, _Options, _Index > >::StorageKind Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::StorageKind [inherited] |
Reimplemented from Eigen::EigenBase< SparseVector< _Scalar, _Options, _Index > >.
| anonymous enum |
| anonymous enum |
| Eigen::SparseVector< _Scalar, _Options, _Index >::SparseVector | ( | ) | [inline] |
| Eigen::SparseVector< _Scalar, _Options, _Index >::SparseVector | ( | Index | size | ) | [inline] |
| Eigen::SparseVector< _Scalar, _Options, _Index >::SparseVector | ( | Index | rows, |
| Index | cols | ||
| ) | [inline] |
| Eigen::SparseVector< _Scalar, _Options, _Index >::SparseVector | ( | const MatrixBase< OtherDerived > & | other | ) | [inline] |
| Eigen::SparseVector< _Scalar, _Options, _Index >::SparseVector | ( | const SparseMatrixBase< OtherDerived > & | other | ) | [inline] |
| Eigen::SparseVector< _Scalar, _Options, _Index >::SparseVector | ( | const SparseVector< _Scalar, _Options, _Index > & | other | ) | [inline] |
| Eigen::SparseVector< _Scalar, _Options, _Index >::~SparseVector | ( | ) | [inline] |
| CompressedStorage<Scalar,Index>& Eigen::SparseVector< _Scalar, _Options, _Index >::_data | ( | ) | [inline] |
| CompressedStorage<Scalar,Index>& Eigen::SparseVector< _Scalar, _Options, _Index >::_data | ( | ) | const [inline] |
| void Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::_experimentalNewProduct | ( | const Lhs & | lhs, |
| const Rhs & | rhs | ||
| ) | [inline, inherited] |
| EIGEN_STRONG_INLINE const Index* Eigen::SparseVector< _Scalar, _Options, _Index >::_innerIndexPtr | ( | ) | const [inline] |
| EIGEN_STRONG_INLINE Index* Eigen::SparseVector< _Scalar, _Options, _Index >::_innerIndexPtr | ( | ) | [inline] |
| EIGEN_STRONG_INLINE const Scalar* Eigen::SparseVector< _Scalar, _Options, _Index >::_valuePtr | ( | ) | const [inline] |
| EIGEN_STRONG_INLINE Scalar* Eigen::SparseVector< _Scalar, _Options, _Index >::_valuePtr | ( | ) | [inline] |
| void Eigen::EigenBase< SparseVector< _Scalar, _Options, _Index > >::addTo | ( | Dest & | dst | ) | const [inline, inherited] |
| const AdjointReturnType Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::adjoint | ( | ) | const [inline, inherited] |
| void Eigen::EigenBase< SparseVector< _Scalar, _Options, _Index > >::applyThisOnTheLeft | ( | Dest & | dst | ) | const [inline, inherited] |
| void Eigen::EigenBase< SparseVector< _Scalar, _Options, _Index > >::applyThisOnTheRight | ( | Dest & | dst | ) | const [inline, inherited] |
| void Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::assignGeneric | ( | const OtherDerived & | other | ) | [inline, inherited] |
| EIGEN_STRONG_INLINE const CwiseBinaryOp<CustomBinaryOp, const SparseVector< _Scalar, _Options, _Index > , const OtherDerived> Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::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<SparseVector< _Scalar, _Options, _Index > ,const CwiseUnaryOp<internal::scalar_cast_op<typename internal::traits<SparseVector< _Scalar, _Options, _Index > >::Scalar, NewType>, const SparseVector< _Scalar, _Options, _Index > > >::type Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::cast | ( | ) | const [inline, inherited] |
| Scalar Eigen::SparseVector< _Scalar, _Options, _Index >::coeff | ( | Index | row, |
| Index | col | ||
| ) | const [inline] |
| Scalar Eigen::SparseVector< _Scalar, _Options, _Index >::coeff | ( | Index | i | ) | const [inline] |
| Scalar& Eigen::SparseVector< _Scalar, _Options, _Index >::coeffRef | ( | Index | row, |
| Index | col | ||
| ) | [inline] |
| Scalar& Eigen::SparseVector< _Scalar, _Options, _Index >::coeffRef | ( | Index | i | ) | [inline] |
This insertion might be very costly if the number of nonzeros above i is large.
| SparseInnerVectorSet<SparseVector< _Scalar, _Options, _Index > ,1> Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::col | ( | Index | j | ) | [inherited] |
*this. For column-major matrix only. | const SparseInnerVectorSet<SparseVector< _Scalar, _Options, _Index > ,1> Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::col | ( | Index | j | ) | const [inherited] |
*this. For column-major matrix only. (read-only version) | EIGEN_STRONG_INLINE Index Eigen::SparseVector< _Scalar, _Options, _Index >::cols | ( | void | ) | const [inline] |
Reimplemented from Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >.
| ConjugateReturnType Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::conjugate | ( | ) | const [inline, inherited] |
| SparseVector< _Scalar, _Options, _Index > & Eigen::EigenBase< SparseVector< _Scalar, _Options, _Index > >::const_cast_derived | ( | ) | const [inline, inherited] |
| const SparseVector< _Scalar, _Options, _Index > & Eigen::EigenBase< SparseVector< _Scalar, _Options, _Index > >::const_derived | ( | ) | const [inline, inherited] |
| EIGEN_STRONG_INLINE const CwiseUnaryOp<internal::scalar_abs_op<Scalar>, const SparseVector< _Scalar, _Options, _Index > > Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::cwiseAbs | ( | ) | const [inline, inherited] |
| EIGEN_STRONG_INLINE const CwiseUnaryOp<internal::scalar_abs2_op<Scalar>, const SparseVector< _Scalar, _Options, _Index > > Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::cwiseAbs2 | ( | ) | const [inline, inherited] |
| const CwiseUnaryOp<std::binder1st<std::equal_to<Scalar> >, const SparseVector< _Scalar, _Options, _Index > > Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::cwiseEqual | ( | const Scalar & | s | ) | const [inline, inherited] |
*this and a scalar s | const CwiseBinaryOp<std::equal_to<Scalar>, const SparseVector< _Scalar, _Options, _Index > , const OtherDerived> Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::cwiseEqual | ( | const EIGEN_CURRENT_STORAGE_BASE_CLASS< OtherDerived > & | other | ) | const [inline, inherited] |
Example:
Output:
| const CwiseUnaryOp<internal::scalar_inverse_op<Scalar>, const SparseVector< _Scalar, _Options, _Index > > Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::cwiseInverse | ( | ) | const [inline, inherited] |
| EIGEN_STRONG_INLINE const CwiseBinaryOp<internal::scalar_max_op<Scalar>, const SparseVector< _Scalar, _Options, _Index > , const OtherDerived> Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::cwiseMax | ( | const EIGEN_CURRENT_STORAGE_BASE_CLASS< OtherDerived > & | other | ) | const [inline, inherited] |
| EIGEN_STRONG_INLINE const CwiseBinaryOp<internal::scalar_min_op<Scalar>, const SparseVector< _Scalar, _Options, _Index > , const OtherDerived> Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::cwiseMin | ( | const EIGEN_CURRENT_STORAGE_BASE_CLASS< OtherDerived > & | other | ) | const [inline, inherited] |
| const CwiseBinaryOp<std::not_equal_to<Scalar>, const SparseVector< _Scalar, _Options, _Index > , const OtherDerived> Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::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< SparseVector< _Scalar, _Options, _Index > >::cwiseProduct | ( | const MatrixBase< OtherDerived > & | other | ) | const [inherited] |
| EIGEN_STRONG_INLINE const CwiseBinaryOp<internal::scalar_quotient_op<Scalar>, const SparseVector< _Scalar, _Options, _Index > , const OtherDerived> Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::cwiseQuotient | ( | const EIGEN_CURRENT_STORAGE_BASE_CLASS< OtherDerived > & | other | ) | const [inline, inherited] |
| const CwiseUnaryOp<internal::scalar_sqrt_op<Scalar>, const SparseVector< _Scalar, _Options, _Index > > Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::cwiseSqrt | ( | ) | const [inline, inherited] |
| SparseVector< _Scalar, _Options, _Index > & Eigen::EigenBase< SparseVector< _Scalar, _Options, _Index > >::derived | ( | ) | [inline, inherited] |
| const SparseVector< _Scalar, _Options, _Index > & Eigen::EigenBase< SparseVector< _Scalar, _Options, _Index > >::derived | ( | ) | const [inline, inherited] |
| Scalar Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::dot | ( | const MatrixBase< OtherDerived > & | other | ) | const [inherited] |
| Scalar Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::dot | ( | const SparseMatrixBase< OtherDerived > & | other | ) | const [inherited] |
| EIGEN_STRONG_INLINE const Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::EIGEN_CWISE_PRODUCT_RETURN_TYPE | ( | SparseVector< _Scalar, _Options, _Index > | , |
| OtherDerived | |||
| ) | const [inline, inherited] |
| EIGEN_DEPRECATED void Eigen::SparseVector< _Scalar, _Options, _Index >::endFill | ( | ) | [inline] |
| const internal::eval<SparseVector< _Scalar, _Options, _Index > >::type Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::eval | ( | ) | const [inline, inherited] |
| void Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::evalTo | ( | MatrixBase< DenseDerived > & | dst | ) | const [inline, inherited] |
| void Eigen::EigenBase< SparseVector< _Scalar, _Options, _Index > >::evalTo | ( | Dest & | dst | ) | const [inline, inherited] |
| EIGEN_DEPRECATED Scalar& Eigen::SparseVector< _Scalar, _Options, _Index >::fill | ( | Index | r, |
| Index | c | ||
| ) | [inline] |
| EIGEN_DEPRECATED Scalar& Eigen::SparseVector< _Scalar, _Options, _Index >::fill | ( | Index | i | ) | [inline] |
| EIGEN_DEPRECATED Scalar& Eigen::SparseVector< _Scalar, _Options, _Index >::fillrand | ( | Index | r, |
| Index | c | ||
| ) | [inline] |
| EIGEN_DEPRECATED Scalar& Eigen::SparseVector< _Scalar, _Options, _Index >::fillrand | ( | Index | i | ) | [inline] |
| void Eigen::SparseVector< _Scalar, _Options, _Index >::finalize | ( | ) | [inline] |
| NonConstImagReturnType Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::imag | ( | ) | [inline, inherited] |
| const ImagReturnType Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::imag | ( | ) | const [inline, inherited] |
| EIGEN_STRONG_INLINE Index Eigen::SparseVector< _Scalar, _Options, _Index >::innerNonZeros | ( | Index | j | ) | const [inline] |
| EIGEN_STRONG_INLINE Index Eigen::SparseVector< _Scalar, _Options, _Index >::innerSize | ( | ) | const [inline] |
Reimplemented from Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >.
| SparseInnerVectorSet<SparseVector< _Scalar, _Options, _Index > ,1> Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::innerVector | ( | Index | outer | ) | [inherited] |
*this if *this is col-major (resp. row-major). | const SparseInnerVectorSet<SparseVector< _Scalar, _Options, _Index > ,1> Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::innerVector | ( | Index | outer | ) | const [inherited] |
*this if *this is col-major (resp. row-major). Read-only. | SparseInnerVectorSet<SparseVector< _Scalar, _Options, _Index > ,Dynamic> Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::innerVectors | ( | Index | outerStart, |
| Index | outerSize | ||
| ) | [inherited] |
*this if *this is col-major (resp. row-major). | const SparseInnerVectorSet<SparseVector< _Scalar, _Options, _Index > ,Dynamic> Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::innerVectors | ( | Index | outerStart, |
| Index | outerSize | ||
| ) | const [inherited] |
*this if *this is col-major (resp. row-major). Read-only. | Scalar& Eigen::SparseVector< _Scalar, _Options, _Index >::insert | ( | Index | row, |
| Index | col | ||
| ) | [inline] |
| Scalar& Eigen::SparseVector< _Scalar, _Options, _Index >::insert | ( | Index | i | ) | [inline] |
| Scalar& Eigen::SparseVector< _Scalar, _Options, _Index >::insertBack | ( | Index | i | ) | [inline] |
| Scalar& Eigen::SparseVector< _Scalar, _Options, _Index >::insertBackByOuterInner | ( | Index | outer, |
| Index | inner | ||
| ) | [inline] |
| bool Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::isApprox | ( | const SparseMatrixBase< OtherDerived > & | other, |
| RealScalar | prec = NumTraits<Scalar>::dummy_precision() |
||
| ) | const [inline, inherited] |
| bool Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::isApprox | ( | const MatrixBase< OtherDerived > & | other, |
| RealScalar | prec = NumTraits<Scalar>::dummy_precision() |
||
| ) | const [inline, inherited] |
| bool Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::isRValue | ( | ) | const [inline, inherited] |
| bool Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::isVector | ( | ) | const [inline, inherited] |
| SparseVector< _Scalar, _Options, _Index > & Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::markAsRValue | ( | ) | [inline, inherited] |
| Index Eigen::SparseVector< _Scalar, _Options, _Index >::nonZeros | ( | ) | const [inline] |
Reimplemented from Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >.
| RealScalar Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::norm | ( | ) | const [inherited] |
| const CwiseUnaryOp<internal::scalar_multiple2_op<Scalar,std::complex<Scalar> >, const SparseVector< _Scalar, _Options, _Index > > Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::operator* | ( | const std::complex< Scalar > & | scalar | ) | const [inline, inherited] |
| const ScalarMultipleReturnType Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::operator* | ( | const Scalar & | scalar | ) | const [inline, inherited] |
| const ScalarMultipleReturnType Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::operator* | ( | const RealScalar & | scalar | ) | const [inherited] |
| const SparseSparseProductReturnType<SparseVector< _Scalar, _Options, _Index > ,OtherDerived>::Type Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::operator* | ( | const SparseMatrixBase< OtherDerived > & | other | ) | const [inherited] |
| const SparseDiagonalProduct<SparseVector< _Scalar, _Options, _Index > ,OtherDerived> Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::operator* | ( | const DiagonalBase< OtherDerived > & | other | ) | const [inherited] |
| const SparseDenseProductReturnType<SparseVector< _Scalar, _Options, _Index > ,OtherDerived>::Type Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::operator* | ( | const MatrixBase< OtherDerived > & | other | ) | const [inherited] |
sparse * dense (returns a dense object unless it is an outer product)
| SparseVector< _Scalar, _Options, _Index > & Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::operator*= | ( | const Scalar & | other | ) | [inherited] |
| SparseVector< _Scalar, _Options, _Index > & Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::operator*= | ( | const SparseMatrixBase< OtherDerived > & | other | ) | [inherited] |
| SparseVector< _Scalar, _Options, _Index > & Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::operator+= | ( | const SparseMatrixBase< OtherDerived > & | other | ) | [inherited] |
| const CwiseUnaryOp<internal::scalar_opposite_op<typename internal::traits<SparseVector< _Scalar, _Options, _Index > >::Scalar>, const SparseVector< _Scalar, _Options, _Index > > Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::operator- | ( | ) | const [inline, inherited] |
| SparseVector< _Scalar, _Options, _Index > & Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::operator-= | ( | const SparseMatrixBase< OtherDerived > & | other | ) | [inherited] |
| const CwiseUnaryOp<internal::scalar_quotient1_op<typename internal::traits<SparseVector< _Scalar, _Options, _Index > >::Scalar>, const SparseVector< _Scalar, _Options, _Index > > Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::operator/ | ( | const Scalar & | scalar | ) | const [inline, inherited] |
| SparseVector< _Scalar, _Options, _Index > & Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::operator/= | ( | const Scalar & | other | ) | [inherited] |
| SparseVector& Eigen::SparseVector< _Scalar, _Options, _Index >::operator= | ( | const SparseVector< _Scalar, _Options, _Index > & | other | ) | [inline] |
Reimplemented from Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >.
| SparseVector& Eigen::SparseVector< _Scalar, _Options, _Index >::operator= | ( | const SparseMatrixBase< OtherDerived > & | other | ) | [inline] |
Reimplemented from Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >.
| EIGEN_STRONG_INLINE Index Eigen::SparseVector< _Scalar, _Options, _Index >::outerSize | ( | ) | const [inline] |
Reimplemented from Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >.
| void Eigen::SparseVector< _Scalar, _Options, _Index >::prune | ( | Scalar | reference, |
| RealScalar | epsilon = NumTraits<RealScalar>::dummy_precision() |
||
| ) | [inline] |
| RealReturnType Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::real | ( | ) | const [inline, inherited] |
| NonConstRealReturnType Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::real | ( | ) | [inline, inherited] |
| void Eigen::SparseVector< _Scalar, _Options, _Index >::reserve | ( | Index | reserveSize | ) | [inline] |
| void Eigen::SparseVector< _Scalar, _Options, _Index >::resize | ( | Index | rows, |
| Index | cols | ||
| ) | [inline] |
| void Eigen::SparseVector< _Scalar, _Options, _Index >::resize | ( | Index | newSize | ) | [inline] |
| void Eigen::SparseVector< _Scalar, _Options, _Index >::resizeNonZeros | ( | Index | size | ) | [inline] |
| const SparseInnerVectorSet<SparseVector< _Scalar, _Options, _Index > ,1> Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::row | ( | Index | i | ) | const [inherited] |
*this. For row-major matrix only. (read-only version) | SparseInnerVectorSet<SparseVector< _Scalar, _Options, _Index > ,1> Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::row | ( | Index | i | ) | [inherited] |
*this. For row-major matrix only. | EIGEN_STRONG_INLINE Index Eigen::SparseVector< _Scalar, _Options, _Index >::rows | ( | void | ) | const [inline] |
Reimplemented from Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >.
| SparseSelfAdjointView<SparseVector< _Scalar, _Options, _Index > , UpLo> Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::selfadjointView | ( | ) | [inline, inherited] |
| const SparseSelfAdjointView<SparseVector< _Scalar, _Options, _Index > , UpLo> Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::selfadjointView | ( | ) | const [inline, inherited] |
| void Eigen::SparseVector< _Scalar, _Options, _Index >::setZero | ( | ) | [inline] |
| Index Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::size | ( | ) | const [inline, inherited] |
Reimplemented from Eigen::EigenBase< SparseVector< _Scalar, _Options, _Index > >.
| RealScalar Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::squaredNorm | ( | ) | const [inherited] |
| EIGEN_DEPRECATED void Eigen::SparseVector< _Scalar, _Options, _Index >::startFill | ( | Index | reserve | ) | [inline] |
| void Eigen::SparseVector< _Scalar, _Options, _Index >::startVec | ( | Index | outer | ) | [inline] |
| SparseInnerVectorSet<SparseVector< _Scalar, _Options, _Index > ,Dynamic> Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::subcols | ( | Index | start, |
| Index | size | ||
| ) | [inherited] |
*this. For column-major matrix only. | const SparseInnerVectorSet<SparseVector< _Scalar, _Options, _Index > ,Dynamic> Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::subcols | ( | Index | start, |
| Index | size | ||
| ) | const [inherited] |
*this. For column-major matrix only. (read-only version) | const SparseInnerVectorSet<SparseVector< _Scalar, _Options, _Index > ,Dynamic> Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::subrows | ( | Index | start, |
| Index | size | ||
| ) | const [inherited] |
*this. For row-major matrix only. (read-only version) | SparseInnerVectorSet<SparseVector< _Scalar, _Options, _Index > ,Dynamic> Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::subrows | ( | Index | start, |
| Index | size | ||
| ) | [inherited] |
*this. For row-major matrix only. | void Eigen::EigenBase< SparseVector< _Scalar, _Options, _Index > >::subTo | ( | Dest & | dst | ) | const [inline, inherited] |
| internal::traits< SparseVector< _Scalar, _Options, _Index > >::Scalar Eigen::SparseVector< _Scalar, _Options, _Index >::sum | ( | ) | const |
Overloaded for performance.
Reimplemented from Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >.
| void Eigen::SparseVector< _Scalar, _Options, _Index >::swap | ( | SparseVector< _Scalar, _Options, _Index > & | other | ) | [inline] |
| Matrix<Scalar,RowsAtCompileTime,ColsAtCompileTime> Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::toDense | ( | ) | const [inline, inherited] |
| Transpose<SparseVector< _Scalar, _Options, _Index > > Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::transpose | ( | ) | [inline, inherited] |
| const Transpose<const SparseVector< _Scalar, _Options, _Index > > Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::transpose | ( | ) | const [inline, inherited] |
| const SparseTriangularView<SparseVector< _Scalar, _Options, _Index > , Mode> Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::triangularView | ( | ) | const [inline, inherited] |
| const CwiseUnaryOp<CustomUnaryOp, const SparseVector< _Scalar, _Options, _Index > > Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::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 SparseVector< _Scalar, _Options, _Index > > Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::unaryViewExpr | ( | const CustomViewOp & | func = CustomViewOp() | ) | const [inline, inherited] |
| const ScalarMultipleReturnType operator* | ( | const Scalar & | scalar, |
| const StorageBaseType & | matrix | ||
| ) | [friend, inherited] |
| const SparseDiagonalProduct<OtherDerived,SparseVector< _Scalar, _Options, _Index > > operator* | ( | const DiagonalBase< OtherDerived > & | lhs, |
| const SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > > & | rhs | ||
| ) | [friend, inherited] |
| const DenseSparseProductReturnType<OtherDerived,SparseVector< _Scalar, _Options, _Index > >::Type operator* | ( | const MatrixBase< OtherDerived > & | lhs, |
| const SparseVector< _Scalar, _Options, _Index > & | rhs | ||
| ) | [friend, inherited] |
| const CwiseUnaryOp<internal::scalar_multiple2_op<Scalar,std::complex<Scalar> >, const SparseVector< _Scalar, _Options, _Index > > operator* | ( | const std::complex< Scalar > & | scalar, |
| const StorageBaseType & | matrix | ||
| ) | [friend, inherited] |
| std::ostream& operator<< | ( | std::ostream & | s, |
| const SparseVector< _Scalar, _Options, _Index > & | m | ||
| ) | [friend] |
| std::ostream& operator<< | ( | std::ostream & | s, |
| const SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > > & | m | ||
| ) | [friend, inherited] |
| CompressedStorage<Scalar,Index> Eigen::SparseVector< _Scalar, _Options, _Index >::m_data |
bool Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >::m_isRValue [protected, inherited] |
| Index Eigen::SparseVector< _Scalar, _Options, _Index >::m_size |
| Page generated by Doxygen 1.7.4 for MRPT 0.9.5 SVN:2717 at Sun Oct 16 16:08:03 PDT 2011 | Hosted on: |