template<typename Scalar_, int Options_, typename StorageIndex_>
class Eigen::SparseVector< Scalar_, Options_, StorageIndex_ >
a sparse vector class
- Template Parameters
-
| 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 Extending MatrixBase (and other classes) by defining the preprocessor symbol EIGEN_SPARSEVECTOR_PLUGIN.
|
| Scalar & | coeffRef (Index i) |
| void | conservativeResize (Index newSize) |
| Index | nonZeros () const |
| Index | prune (const Scalar &reference, const RealScalar &epsilon=NumTraits< RealScalar >::dummy_precision()) |
| template<class F> |
| Index | prune (F &&keep_predicate) |
| | Prunes the entries of the vector based on a predicate.
|
| void | resize (Index newSize) |
| void | resize (Index rows, Index cols) |
| Scalar | sum () const |
| void | swap (SparseVector &other) |
| | ~SparseVector () |
| const Map< const Array< Scalar, Dynamic, 1 > > | coeffs () const |
| const StorageIndex * | innerIndexPtr () const |
| Index | innerIndicesAreSorted (Index begin, Index end) const |
| const StorageIndex * | innerNonZeroPtr () const |
| bool | isCompressed () const |
| Index | nonZeros () const |
| const StorageIndex * | outerIndexPtr () const |
| void | sortInnerIndices (Index begin, Index end) |
| const Scalar * | valuePtr () const |
| const CwiseBinaryOp< CustomBinaryOp, const SparseVector< Scalar_, Options_, StorageIndex_ >, const OtherDerived > | binaryExpr (const Eigen::SparseMatrixBase< OtherDerived > &other, const CustomBinaryOp &func=CustomBinaryOp()) const |
| FixedBlockXpr<...,... >::Type | block (Index startRow, Index startCol, NRowsType blockRows, NColsType blockCols) |
| FixedBlockXpr<...,... >::Type | bottomLeftCorner (NRowsType cRows, NColsType cCols) |
| FixedBlockXpr<...,... >::Type | bottomRightCorner (NRowsType cRows, NColsType cCols) |
| NRowsBlockXpr<... >::Type | bottomRows (NRowsType n) |
| CastXpr< NewType >::Type | cast () const |
| ColXpr | col (Index i) |
| Index | cols () const |
| ConjugateReturnType | conjugate () const |
| std::conditional_t< Cond, ConjugateReturnType, const SparseVector< Scalar_, Options_, StorageIndex_ > & > | conjugateIf () const |
| const CwiseAbsReturnType | cwiseAbs () const |
| const CwiseAbs2ReturnType | cwiseAbs2 () const |
| const CwiseArgReturnType | cwiseArg () const |
| const CwiseCbrtReturnType | cwiseCbrt () const |
| const CwiseBinaryEqualReturnType< OtherDerived > | cwiseEqual (const Eigen::SparseMatrixBase< OtherDerived > &other) const |
| const CwiseBinaryGreaterReturnType< OtherDerived > | cwiseGreater (const Eigen::SparseMatrixBase< OtherDerived > &other) const |
| const CwiseBinaryGreaterOrEqualReturnType< OtherDerived > | cwiseGreaterOrEqual (const Eigen::SparseMatrixBase< OtherDerived > &other) const |
| const CwiseInverseReturnType | cwiseInverse () const |
| const CwiseBinaryLessReturnType< OtherDerived > | cwiseLess (const Eigen::SparseMatrixBase< OtherDerived > &other) const |
| const CwiseBinaryLessOrEqualReturnType< OtherDerived > | cwiseLessOrEqual (const Eigen::SparseMatrixBase< OtherDerived > &other) const |
| const CwiseBinaryOp< internal::scalar_max_op< Scalar, Scalar, NaNPropagation >, const SparseVector< Scalar_, Options_, StorageIndex_ >, const OtherDerived > | cwiseMax (const Eigen::SparseMatrixBase< OtherDerived > &other) const |
| const CwiseBinaryOp< internal::scalar_min_op< Scalar, Scalar, NaNPropagation >, const SparseVector< Scalar_, Options_, StorageIndex_ >, const OtherDerived > | cwiseMin (const Eigen::SparseMatrixBase< OtherDerived > &other) const |
| const CwiseBinaryNotEqualReturnType< OtherDerived > | cwiseNotEqual (const Eigen::SparseMatrixBase< OtherDerived > &other) const |
| const CwiseBinaryOp< internal::scalar_quotient_op< Scalar >, const SparseVector< Scalar_, Options_, StorageIndex_ >, const OtherDerived > | cwiseQuotient (const Eigen::SparseMatrixBase< OtherDerived > &other) const |
| const CwiseSignReturnType | cwiseSign () const |
| const CwiseSqrtReturnType | cwiseSqrt () const |
| const CwiseSquareReturnType | cwiseSquare () const |
| const internal::eval< SparseVector< Scalar_, Options_, StorageIndex_ > >::type | eval () const |
| FixedSegmentReturnType<... >::Type | head (NType n) |
| const ImagReturnType | imag () const |
| Index | innerSize () const |
| InnerVectorReturnType | innerVector (Index outer) |
| InnerVectorsReturnType | innerVectors (Index outerStart, Index outerSize) |
| bool | isVector () const |
| NColsBlockXpr<... >::Type | leftCols (NColsType n) |
| NColsBlockXpr<... >::Type | middleCols (Index startCol, NColsType numCols) |
| NRowsBlockXpr<... >::Type | middleRows (Index startRow, NRowsType n) |
| const CwiseBinaryOp< internal::scalar_bitwise_and_op< Scalar >, const SparseVector< Scalar_, Options_, StorageIndex_ >, const OtherDerived > | operator& (const Eigen::SparseMatrixBase< OtherDerived > &other) const |
| const CwiseBinaryOp< internal::scalar_boolean_and_op< Scalar >, const SparseVector< Scalar_, Options_, StorageIndex_ >, const OtherDerived > | operator&& (const Eigen::SparseMatrixBase< OtherDerived > &other) const |
| const CwiseBinaryOp< sum< Scalar >, const SparseVector< Scalar_, Options_, StorageIndex_ >, const OtherDerived > | operator+ (const Eigen::SparseMatrixBase< OtherDerived > &other) const |
| const NegativeReturnType | operator- () const |
| const CwiseBinaryOp< internal::scalar_bitwise_xor_op< Scalar >, const SparseVector< Scalar_, Options_, StorageIndex_ >, const OtherDerived > | operator^ (const Eigen::SparseMatrixBase< OtherDerived > &other) const |
| const CwiseBinaryOp< internal::scalar_bitwise_or_op< Scalar >, const SparseVector< Scalar_, Options_, StorageIndex_ >, const OtherDerived > | operator| (const Eigen::SparseMatrixBase< OtherDerived > &other) const |
| const CwiseBinaryOp< internal::scalar_boolean_or_op< Scalar >, const SparseVector< Scalar_, Options_, StorageIndex_ >, const OtherDerived > | operator|| (const Eigen::SparseMatrixBase< OtherDerived > &other) const |
| Index | outerSize () const |
| const SparseView< SparseVector< Scalar_, Options_, StorageIndex_ > > | pruned (const Scalar &reference=Scalar(0), const RealScalar &epsilon=NumTraits< Scalar >::dummy_precision()) const |
| RealReturnType | real () const |
| NColsBlockXpr<... >::Type | rightCols (NColsType n) |
| RowXpr | row (Index i) |
| Index | rows () const |
| FixedSegmentReturnType<... >::Type | segment (Index start, NType n) |
| Index | size () const |
| std::conditional_t< Direction==Vertical, ColXpr, RowXpr > | subVector (Index i) |
| constexpr Index | subVectors () const |
| FixedSegmentReturnType<... >::Type | tail (NType n) |
| FixedBlockXpr<...,... >::Type | topLeftCorner (NRowsType cRows, NColsType cCols) |
| FixedBlockXpr<...,... >::Type | topRightCorner (NRowsType cRows, NColsType cCols) |
| NRowsBlockXpr<... >::Type | topRows (NRowsType n) |
| SparseSymmetricPermutationProduct< SparseVector< Scalar_, Options_, StorageIndex_ >, Upper|Lower > | twistedBy (const PermutationMatrix< Dynamic, Dynamic, StorageIndex > &perm) const |
| const CwiseUnaryOp< CustomUnaryOp, const SparseVector< Scalar_, Options_, StorageIndex_ > > | unaryExpr (const CustomUnaryOp &func=CustomUnaryOp()) const |
| | Apply a unary operator coefficient-wise.
|
| const CwiseUnaryView< CustomViewOp, const SparseVector< Scalar_, Options_, StorageIndex_ > > | unaryViewExpr (const CustomViewOp &func=CustomViewOp()) const |
| constexpr Index | cols () const noexcept |
| constexpr SparseVector< Scalar_, Options_, StorageIndex_ > & | derived () |
| constexpr Index | rows () const noexcept |
| constexpr Index | size () const noexcept |