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 Customizing/Extending Eigen by defining the preprocessor symbol EIGEN_SPARSEVECTOR_PLUGIN
.
|
Scalar & | coeffRef (Index i) |
|
void | conservativeResize (Index newSize) |
|
Index | nonZeros () const |
|
void | prune (const Scalar &reference, const RealScalar &epsilon=NumTraits< RealScalar >::dummy_precision()) |
|
void | resize (Index rows, Index cols) |
|
void | resize (Index newSize) |
|
Scalar | sum () const |
|
void | swap (SparseVector &other) |
|
| ~SparseVector () |
|
const StorageIndex * | innerIndexPtr () const |
|
StorageIndex * | innerIndexPtr () |
|
const StorageIndex * | innerNonZeroPtr () const |
|
StorageIndex * | innerNonZeroPtr () |
|
bool | isCompressed () const |
|
Index | nonZeros () const |
|
const StorageIndex * | outerIndexPtr () const |
|
StorageIndex * | outerIndexPtr () |
|
const Scalar * | valuePtr () const |
|
Scalar * | valuePtr () |
|
const CwiseBinaryOp< CustomBinaryOp, const SparseVector< _Scalar, _Options, _StorageIndex >, const OtherDerived > | binaryExpr (const Eigen::SparseMatrixBase< OtherDerived > &other, const CustomBinaryOp &func=CustomBinaryOp()) const |
|
BlockXpr | block (Index startRow, Index startCol, Index blockRows, Index blockCols) |
|
const ConstBlockXpr | block (Index startRow, Index startCol, Index blockRows, Index blockCols) const |
|
FixedBlockXpr< NRows, NCols >::Type | block (Index startRow, Index startCol) |
|
const ConstFixedBlockXpr< NRows, NCols >::Type | block (Index startRow, Index startCol) const |
|
FixedBlockXpr< NRows, NCols >::Type | block (Index startRow, Index startCol, Index blockRows, Index blockCols) |
|
const ConstFixedBlockXpr< NRows, NCols >::Type | block (Index startRow, Index startCol, Index blockRows, Index blockCols) const |
|
BlockXpr | bottomLeftCorner (Index cRows, Index cCols) |
|
const ConstBlockXpr | bottomLeftCorner (Index cRows, Index cCols) const |
|
FixedBlockXpr< CRows, CCols >::Type | bottomLeftCorner () |
|
const ConstFixedBlockXpr< CRows, CCols >::Type | bottomLeftCorner () const |
|
FixedBlockXpr< CRows, CCols >::Type | bottomLeftCorner (Index cRows, Index cCols) |
|
const ConstFixedBlockXpr< CRows, CCols >::Type | bottomLeftCorner (Index cRows, Index cCols) const |
|
BlockXpr | bottomRightCorner (Index cRows, Index cCols) |
|
const ConstBlockXpr | bottomRightCorner (Index cRows, Index cCols) const |
|
FixedBlockXpr< CRows, CCols >::Type | bottomRightCorner () |
|
const ConstFixedBlockXpr< CRows, CCols >::Type | bottomRightCorner () const |
|
FixedBlockXpr< CRows, CCols >::Type | bottomRightCorner (Index cRows, Index cCols) |
|
const ConstFixedBlockXpr< CRows, CCols >::Type | bottomRightCorner (Index cRows, Index cCols) const |
|
RowsBlockXpr | bottomRows (Index n) |
|
ConstRowsBlockXpr | bottomRows (Index n) const |
|
NRowsBlockXpr< N >::Type | bottomRows (Index n=N) |
|
ConstNRowsBlockXpr< N >::Type | bottomRows (Index n=N) const |
|
CastXpr< NewType >::Type | cast () const |
|
ColXpr | col (Index i) |
|
ConstColXpr | col (Index i) const |
|
Index | cols () const |
|
ConjugateReturnType | conjugate () const |
|
const CwiseAbsReturnType | cwiseAbs () const |
|
const CwiseAbs2ReturnType | cwiseAbs2 () const |
|
const CwiseInverseReturnType | cwiseInverse () const |
|
const CwiseSignReturnType | cwiseSign () const |
|
const CwiseSqrtReturnType | cwiseSqrt () const |
|
const internal::eval< SparseVector< _Scalar, _Options, _StorageIndex > >::type | eval () const |
|
SegmentReturnType | head (Index n) |
|
ConstSegmentReturnType | head (Index n) const |
|
FixedSegmentReturnType< N >::Type | head (Index n=N) |
|
ConstFixedSegmentReturnType< N >::Type | head (Index n=N) const |
|
const ImagReturnType | imag () const |
|
NonConstImagReturnType | imag () |
|
Index | innerSize () const |
|
bool | isVector () const |
|
ColsBlockXpr | leftCols (Index n) |
|
ConstColsBlockXpr | leftCols (Index n) const |
|
NColsBlockXpr< N >::Type | leftCols (Index n=N) |
|
ConstNColsBlockXpr< N >::Type | leftCols (Index n=N) const |
|
ColsBlockXpr | middleCols (Index startCol, Index numCols) |
|
ConstColsBlockXpr | middleCols (Index startCol, Index numCols) const |
|
NColsBlockXpr< N >::Type | middleCols (Index startCol, Index n=N) |
|
ConstNColsBlockXpr< N >::Type | middleCols (Index startCol, Index n=N) const |
|
RowsBlockXpr | middleRows (Index startRow, Index n) |
|
ConstRowsBlockXpr | middleRows (Index startRow, Index n) const |
|
NRowsBlockXpr< N >::Type | middleRows (Index startRow, Index n=N) |
|
ConstNRowsBlockXpr< N >::Type | middleRows (Index startRow, Index n=N) const |
|
const CwiseBinaryOp< internal::scalar_product_op< Scalar, T >, SparseVector< _Scalar, _Options, _StorageIndex >, Constant< T > > | operator* (const T &scalar) const |
|
const CwiseBinaryOp< sum< Scalar >, const SparseVector< _Scalar, _Options, _StorageIndex >, const OtherDerived > | operator+ (const Eigen::SparseMatrixBase< OtherDerived > &other) const |
|
const CwiseBinaryOp< difference< Scalar >, const SparseVector< _Scalar, _Options, _StorageIndex >, const OtherDerived > | operator- (const Eigen::SparseMatrixBase< OtherDerived > &other) const |
|
const NegativeReturnType | operator- () const |
|
const CwiseBinaryOp< internal::scalar_quotient_op< Scalar, T >, SparseVector< _Scalar, _Options, _StorageIndex >, Constant< T > > | operator/ (const T &scalar) const |
|
Index | outerSize () const |
|
RealReturnType | real () const |
|
NonConstRealReturnType | real () |
|
ColsBlockXpr | rightCols (Index n) |
|
ConstColsBlockXpr | rightCols (Index n) const |
|
NColsBlockXpr< N >::Type | rightCols (Index n=N) |
|
ConstNColsBlockXpr< N >::Type | rightCols (Index n=N) const |
|
RowXpr | row (Index i) |
|
ConstRowXpr | row (Index i) const |
|
Index | rows () const |
|
SegmentReturnType | segment (Index start, Index n) |
|
ConstSegmentReturnType | segment (Index start, Index n) const |
|
FixedSegmentReturnType< N >::Type | segment (Index start, Index n=N) |
|
ConstFixedSegmentReturnType< N >::Type | segment (Index start, Index n=N) const |
|
Index | size () const |
|
SegmentReturnType | tail (Index n) |
|
ConstSegmentReturnType | tail (Index n) const |
|
FixedSegmentReturnType< N >::Type | tail (Index n=N) |
|
ConstFixedSegmentReturnType< N >::Type | tail (Index n=N) const |
|
BlockXpr | topLeftCorner (Index cRows, Index cCols) |
|
const ConstBlockXpr | topLeftCorner (Index cRows, Index cCols) const |
|
FixedBlockXpr< CRows, CCols >::Type | topLeftCorner () |
|
const ConstFixedBlockXpr< CRows, CCols >::Type | topLeftCorner () const |
|
FixedBlockXpr< CRows, CCols >::Type | topLeftCorner (Index cRows, Index cCols) |
|
const ConstFixedBlockXpr< CRows, CCols >::Type | topLeftCorner (Index cRows, Index cCols) const |
|
BlockXpr | topRightCorner (Index cRows, Index cCols) |
|
const ConstBlockXpr | topRightCorner (Index cRows, Index cCols) const |
|
FixedBlockXpr< CRows, CCols >::Type | topRightCorner () |
|
const ConstFixedBlockXpr< CRows, CCols >::Type | topRightCorner () const |
|
FixedBlockXpr< CRows, CCols >::Type | topRightCorner (Index cRows, Index cCols) |
|
const ConstFixedBlockXpr< CRows, CCols >::Type | topRightCorner (Index cRows, Index cCols) const |
|
RowsBlockXpr | topRows (Index n) |
|
ConstRowsBlockXpr | topRows (Index n) const |
|
NRowsBlockXpr< N >::Type | topRows (Index n=N) |
|
ConstNRowsBlockXpr< N >::Type | topRows (Index n=N) const |
|
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. More...
|
|
const CwiseUnaryView< CustomViewOp, const SparseVector< _Scalar, _Options, _StorageIndex > > | unaryViewExpr (const CustomViewOp &func=CustomViewOp()) const |
|
Index | cols () const |
|
SparseVector< _Scalar, _Options, _StorageIndex > & | derived () |
|
const SparseVector< _Scalar, _Options, _StorageIndex > & | derived () const |
|
Index | rows () const |
|
Index | size () const |
|