WPILibC++ 2023.4.3
Eigen::SparseVector< _Scalar, _Options, _StorageIndex > Class Template Reference

a sparse vector class More...

#include </home/runner/work/allwpilib/allwpilib/wpimath/src/main/native/thirdparty/eigen/include/Eigen/src/SparseCore/SparseVector.h>

Inheritance diagram for Eigen::SparseVector< _Scalar, _Options, _StorageIndex >:
Eigen::SparseCompressedBase< SparseVector< _Scalar, _Options, _StorageIndex > > Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _StorageIndex > > Eigen::EigenBase< SparseVector< _Scalar, _Options, _StorageIndex > >

Public Types

enum  { IsColVector = internal::traits<SparseVector>::IsColVector }
 
enum  { Options = _Options }
 
typedef internal::CompressedStorage< Scalar, StorageIndexStorage
 
typedef Base::InnerIterator InnerIterator
 
typedef Base::ReverseInnerIterator ReverseInnerIterator
 
- Public Types inherited from Eigen::SparseCompressedBase< SparseVector< _Scalar, _Options, _StorageIndex > >
typedef SparseMatrixBase< SparseVector< _Scalar, _Options, _StorageIndex > > Base
 
- Public Types inherited from Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _StorageIndex > >
enum  
 
typedef internal::traits< SparseVector< _Scalar, _Options, _StorageIndex > >::Scalar Scalar
 
typedef Scalar value_type
 The numeric type of the expression' coefficients, e.g. More...
 
typedef internal::packet_traits< Scalar >::type PacketScalar
 
typedef internal::traits< SparseVector< _Scalar, _Options, _StorageIndex > >::StorageKind StorageKind
 
typedef internal::traits< SparseVector< _Scalar, _Options, _StorageIndex > >::StorageIndex StorageIndex
 The integer type used to store indices within a SparseMatrix. More...
 
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< SparseVector< _Scalar, _Options, _StorageIndex > > TransposeReturnType
 
typedef internal::add_const< Transpose< constDerived > >::type ConstTransposeReturnType
 
typedef SparseMatrix< Scalar, Flags &RowMajorBit ? RowMajor :ColMajor, StorageIndexPlainObject
 
typedef NumTraits< Scalar >::Real RealScalar
 This is the "real scalar" type; if the Scalar type is already real numbers (e.g. More...
 
typedef internal::conditional< _HasDirectAccess, constScalar &, Scalar >::type CoeffReturnType
 
typedef CwiseNullaryOp< internal::scalar_constant_op< Scalar >, Matrix< Scalar, Dynamic, Dynamic > > ConstantReturnType
 
typedef Matrix< Scalar, RowsAtCompileTime, ColsAtCompileTimeDenseMatrixType
 type of the equivalent dense matrix More...
 
typedef Matrix< Scalar, EIGEN_SIZE_MAX(RowsAtCompileTime, ColsAtCompileTime), EIGEN_SIZE_MAX(RowsAtCompileTime, ColsAtCompileTime)> SquareMatrixType
 type of the equivalent square matrix More...
 
typedef EigenBase< SparseVector< _Scalar, _Options, _StorageIndex > > Base
 
- Public Types inherited from Eigen::EigenBase< SparseVector< _Scalar, _Options, _StorageIndex > >
typedef Eigen::Index Index
 The interface type of indices. More...
 
typedef internal::traits< SparseVector< _Scalar, _Options, _StorageIndex > >::StorageKind StorageKind
 

Public Member Functions

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 const ScalarvaluePtr () const
 
EIGEN_STRONG_INLINE ScalarvaluePtr ()
 
EIGEN_STRONG_INLINE const StorageIndexinnerIndexPtr () const
 
EIGEN_STRONG_INLINE StorageIndexinnerIndexPtr ()
 
const StorageIndexouterIndexPtr () const
 
StorageIndexouterIndexPtr ()
 
const StorageIndexinnerNonZeroPtr () const
 
StorageIndexinnerNonZeroPtr ()
 
Storagedata ()
 
const Storagedata () const
 
Scalar coeff (Index row, Index col) const
 
Scalar coeff (Index i) const
 
ScalarcoeffRef (Index row, Index col)
 
ScalarcoeffRef (Index i)
 
void setZero ()
 
Index nonZeros () const
 
void startVec (Index outer)
 
ScalarinsertBackByOuterInner (Index outer, Index inner)
 
ScalarinsertBack (Index i)
 
ScalarinsertBackByOuterInnerUnordered (Index outer, Index inner)
 
ScalarinsertBackUnordered (Index i)
 
Scalarinsert (Index row, Index col)
 
Scalarinsert (Index i)
 
void reserve (Index reserveSize)
 
void finalize ()
 
void prune (const Scalar &reference, const RealScalar &epsilon=NumTraits< RealScalar >::dummy_precision())
 Suppresses all nonzeros which are much smaller than reference under the tolerance epsilon. More...
 
void resize (Index rows, Index cols)
 Resizes the sparse vector to rows x cols. More...
 
void resize (Index newSize)
 Resizes the sparse vector to newSize This method deletes all entries, thus leaving an empty sparse vector. More...
 
void conservativeResize (Index newSize)
 Resizes the sparse vector to newSize, while leaving old values untouched. More...
 
void resizeNonZeros (Index size)
 
 SparseVector ()
 
 SparseVector (Index size)
 
 SparseVector (Index rows, Index cols)
 
template<typename OtherDerived >
 SparseVector (const SparseMatrixBase< OtherDerived > &other)
 
 SparseVector (const SparseVector &other)
 
void swap (SparseVector &other)
 Swaps the values of *this and other. More...
 
template<int OtherOptions>
void swap (SparseMatrix< Scalar, OtherOptions, StorageIndex > &other)
 
SparseVectoroperator= (const SparseVector &other)
 
template<typename OtherDerived >
SparseVectoroperator= (const SparseMatrixBase< OtherDerived > &other)
 
template<typename Lhs , typename Rhs >
SparseVectoroperator= (const SparseSparseProduct< Lhs, Rhs > &product)
 
 ~SparseVector ()
 Destructor. More...
 
Scalar sum () const
 Overloaded for performance. More...
 
EIGEN_DEPRECATED void startFill (Index reserve)
 
EIGEN_DEPRECATED Scalarfill (Index r, Index c)
 
EIGEN_DEPRECATED Scalarfill (Index i)
 
EIGEN_DEPRECATED Scalarfillrand (Index r, Index c)
 
EIGEN_DEPRECATED Scalarfillrand (Index i)
 
EIGEN_DEPRECATED void endFill ()
 
EIGEN_DEPRECATED Storage_data ()
 
EIGEN_DEPRECATED const Storage_data () const
 
- Public Member Functions inherited from Eigen::SparseCompressedBase< SparseVector< _Scalar, _Options, _StorageIndex > >
Index nonZeros () const
 
const ScalarvaluePtr () const
 
ScalarvaluePtr ()
 
const StorageIndexinnerIndexPtr () const
 
StorageIndexinnerIndexPtr ()
 
const StorageIndexouterIndexPtr () const
 
StorageIndexouterIndexPtr ()
 
const StorageIndexinnerNonZeroPtr () const
 
StorageIndexinnerNonZeroPtr ()
 
bool isCompressed () const
 
const Map< const Array< Scalar, Dynamic, 1 > > coeffs () const
 
Map< Array< Scalar, Dynamic, 1 > > coeffs ()
 
- Public Member Functions inherited from Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _StorageIndex > >
SparseVector< _Scalar, _Options, _StorageIndex > & operator= (const EigenBase< OtherDerived > &other)
 
SparseVector< _Scalar, _Options, _StorageIndex > & operator= (const ReturnByValue< OtherDerived > &other)
 
SparseVector< _Scalar, _Options, _StorageIndex > & operator= (const SparseMatrixBase< OtherDerived > &other)
 
SparseVector< _Scalar, _Options, _StorageIndex > & operator= (const SparseVector< _Scalar, _Options, _StorageIndex > &other)
 
const SparseVector< _Scalar, _Options, _StorageIndex > & derived () const
 
SparseVector< _Scalar, _Options, _StorageIndex > & derived ()
 
SparseVector< _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
 
SparseVector< _Scalar, _Options, _StorageIndex > & markAsRValue ()
 
 SparseMatrixBase ()
 
SparseVector< _Scalar, _Options, _StorageIndex > & operator+= (const SparseMatrixBase< OtherDerived > &other)
 
SparseVector< _Scalar, _Options, _StorageIndex > & operator+= (const DiagonalBase< OtherDerived > &other)
 
SparseVector< _Scalar, _Options, _StorageIndex > & operator+= (const EigenBase< OtherDerived > &other)
 
EIGEN_STRONG_INLINE SparseVector< _Scalar, _Options, _StorageIndex > & operator+= (const SparseMatrixBase< OtherDerived > &other)
 
SparseVector< _Scalar, _Options, _StorageIndex > & operator-= (const SparseMatrixBase< OtherDerived > &other)
 
SparseVector< _Scalar, _Options, _StorageIndex > & operator-= (const DiagonalBase< OtherDerived > &other)
 
SparseVector< _Scalar, _Options, _StorageIndex > & operator-= (const EigenBase< OtherDerived > &other)
 
EIGEN_STRONG_INLINE SparseVector< _Scalar, _Options, _StorageIndex > & operator-= (const SparseMatrixBase< OtherDerived > &other)
 
SparseVector< _Scalar, _Options, _StorageIndex > & operator*= (const Scalar &other)
 
SparseVector< _Scalar, _Options, _StorageIndex > & operator*= (const SparseMatrixBase< OtherDerived > &other)
 
SparseVector< _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< SparseVector< _Scalar, _Options, _StorageIndex > >::template CwiseProductDenseReturnType< OtherDerived >::Type cwiseProduct (const MatrixBase< OtherDerived > &other) const
 
const Product< SparseVector< _Scalar, _Options, _StorageIndex >, OtherDerived > operator* (const DiagonalBase< OtherDerived > &other) const
 
const Product< SparseVector< _Scalar, _Options, _StorageIndex >, OtherDerived, AliasFreeProduct > operator* (const SparseMatrixBase< OtherDerived > &other) const
 
const Product< SparseVector< _Scalar, _Options, _StorageIndex >, OtherDerived > operator* (const MatrixBase< OtherDerived > &other) const
 
SparseSymmetricPermutationProduct< SparseVector< _Scalar, _Options, _StorageIndex >, Upper|Lower > twistedBy (const PermutationMatrix< Dynamic, Dynamic, StorageIndex > &perm) const
 
const TriangularView< const SparseVector< _Scalar, _Options, _StorageIndex >, Mode > triangularView () const
 
ConstSelfAdjointViewReturnType< UpLo >::Type selfadjointView () const
 
SelfAdjointViewReturnType< UpLo >::Type selfadjointView ()
 
SparseMatrixBase< SparseVector< _Scalar, _Options, _StorageIndex > >::template ConstSelfAdjointViewReturnType< UpLo >::Type selfadjointView () const
 
SparseMatrixBase< SparseVector< _Scalar, _Options, _StorageIndex > >::template SelfAdjointViewReturnType< UpLo >::Type selfadjointView ()
 
Scalar dot (const MatrixBase< OtherDerived > &other) const
 
Scalar dot (const SparseMatrixBase< OtherDerived > &other) const
 
internal::traits< SparseVector< _Scalar, _Options, _StorageIndex > >::Scalar dot (const MatrixBase< OtherDerived > &other) const
 
internal::traits< SparseVector< _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< SparseVector< _Scalar, _Options, _StorageIndex > >::type eval () const
 
Scalar sum () const
 
const SparseView< SparseVector< _Scalar, _Options, _StorageIndex > > pruned (const Scalar &reference=Scalar(0), const RealScalar &epsilon=NumTraits< Scalar >::dummy_precision()) const
 
- Public Member Functions inherited from Eigen::EigenBase< SparseVector< _Scalar, _Options, _StorageIndex > >
EIGEN_DEVICE_FUNC SparseVector< _Scalar, _Options, _StorageIndex > & derived ()
 
EIGEN_DEVICE_FUNC const SparseVector< _Scalar, _Options, _StorageIndex > & derived () const
 
EIGEN_DEVICE_FUNC SparseVector< _Scalar, _Options, _StorageIndex > & const_cast_derived () const
 
EIGEN_DEVICE_FUNC const SparseVector< _Scalar, _Options, _StorageIndex > & 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
 
EIGEN_DEVICE_FUNC void evalTo (Dest &dst) const
 
EIGEN_DEVICE_FUNC void addTo (Dest &dst) const
 
EIGEN_DEVICE_FUNC void subTo (Dest &dst) const
 
EIGEN_DEVICE_FUNC void applyThisOnTheRight (Dest &dst) const
 
EIGEN_DEVICE_FUNC void applyThisOnTheLeft (Dest &dst) const
 

Static Protected Member Functions

static void check_template_parameters ()
 
- Static Protected Member Functions inherited from Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _StorageIndex > >
static StorageIndex convert_index (const Index idx)
 

Protected Attributes

Storage m_data
 
Index m_size
 
- Protected Attributes inherited from Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _StorageIndex > >
bool m_isRValue
 

Friends

std::ostream & operator<< (std::ostream &s, const SparseVector &m)
 

Additional Inherited Members

- Protected Types inherited from Eigen::SparseCompressedBase< SparseVector< _Scalar, _Options, _StorageIndex > >
typedef Base::IndexVector IndexVector
 
- Protected Member Functions inherited from Eigen::SparseCompressedBase< SparseVector< _Scalar, _Options, _StorageIndex > >
Eigen::Map< IndexVectorinnerNonZeros ()
 
const Eigen::Map< const IndexVectorinnerNonZeros () const
 
 SparseCompressedBase ()
 Default constructor. More...
 
internal::LowerBoundIndex lower_bound (Index row, Index col) const
 
- Protected Member Functions inherited from Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _StorageIndex > >
SparseVector< _Scalar, _Options, _StorageIndex > & assign (const OtherDerived &other)
 
void assignGeneric (const OtherDerived &other)
 

Detailed Description

template<typename _Scalar, int _Options, typename _StorageIndex>
class Eigen::SparseVector< _Scalar, _Options, _StorageIndex >

a sparse vector class

Template Parameters
_Scalarthe 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 TopicCustomizing_Plugins by defining the preprocessor symbol EIGEN_SPARSEVECTOR_PLUGIN.

Member Typedef Documentation

◆ InnerIterator

template<typename _Scalar , int _Options, typename _StorageIndex >
typedef Base::InnerIterator Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::InnerIterator

◆ ReverseInnerIterator

template<typename _Scalar , int _Options, typename _StorageIndex >
typedef Base::ReverseInnerIterator Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::ReverseInnerIterator

◆ Storage

template<typename _Scalar , int _Options, typename _StorageIndex >
typedef internal::CompressedStorage<Scalar,StorageIndex> Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::Storage

Member Enumeration Documentation

◆ anonymous enum

template<typename _Scalar , int _Options, typename _StorageIndex >
anonymous enum
Enumerator
IsColVector 

◆ anonymous enum

template<typename _Scalar , int _Options, typename _StorageIndex >
anonymous enum
Enumerator
Options 

Constructor & Destructor Documentation

◆ SparseVector() [1/5]

template<typename _Scalar , int _Options, typename _StorageIndex >
Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::SparseVector ( )
inline

◆ SparseVector() [2/5]

template<typename _Scalar , int _Options, typename _StorageIndex >
Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::SparseVector ( Index  size)
inlineexplicit

◆ SparseVector() [3/5]

template<typename _Scalar , int _Options, typename _StorageIndex >
Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::SparseVector ( Index  rows,
Index  cols 
)
inline

◆ SparseVector() [4/5]

template<typename _Scalar , int _Options, typename _StorageIndex >
template<typename OtherDerived >
Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::SparseVector ( const SparseMatrixBase< OtherDerived > &  other)
inline

◆ SparseVector() [5/5]

template<typename _Scalar , int _Options, typename _StorageIndex >
Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::SparseVector ( const SparseVector< _Scalar, _Options, _StorageIndex > &  other)
inline

◆ ~SparseVector()

template<typename _Scalar , int _Options, typename _StorageIndex >
Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::~SparseVector ( )
inline

Destructor.

Member Function Documentation

◆ _data() [1/2]

template<typename _Scalar , int _Options, typename _StorageIndex >
EIGEN_DEPRECATED Storage & Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::_data ( )
inline

◆ _data() [2/2]

template<typename _Scalar , int _Options, typename _StorageIndex >
EIGEN_DEPRECATED const Storage & Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::_data ( ) const
inline

◆ check_template_parameters()

template<typename _Scalar , int _Options, typename _StorageIndex >
static void Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::check_template_parameters ( )
inlinestaticprotected

◆ coeff() [1/2]

template<typename _Scalar , int _Options, typename _StorageIndex >
Scalar Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::coeff ( Index  i) const
inline

◆ coeff() [2/2]

template<typename _Scalar , int _Options, typename _StorageIndex >
Scalar Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::coeff ( Index  row,
Index  col 
) const
inline

◆ coeffRef() [1/2]

template<typename _Scalar , int _Options, typename _StorageIndex >
Scalar & Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::coeffRef ( Index  i)
inline
Returns
a reference to the coefficient value at given index i This operation involes a log(rho*size) binary search. If the coefficient does not exist yet, then a sorted insertion into a sequential buffer is performed.

This insertion might be very costly if the number of nonzeros above i is large.

◆ coeffRef() [2/2]

template<typename _Scalar , int _Options, typename _StorageIndex >
Scalar & Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::coeffRef ( Index  row,
Index  col 
)
inline

◆ cols()

template<typename _Scalar , int _Options, typename _StorageIndex >
EIGEN_STRONG_INLINE Index Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::cols ( ) const
inline

◆ conservativeResize()

template<typename _Scalar , int _Options, typename _StorageIndex >
void Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::conservativeResize ( Index  newSize)
inline

Resizes the sparse vector to newSize, while leaving old values untouched.

If the size of the vector is decreased, then the storage of the out-of bounds coefficients is kept and reserved. Call .data().squeeze() to free extra memory.

See also
reserve(), setZero()

◆ data() [1/2]

template<typename _Scalar , int _Options, typename _StorageIndex >
Storage & Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::data ( )
inline

◆ data() [2/2]

template<typename _Scalar , int _Options, typename _StorageIndex >
const Storage & Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::data ( ) const
inline

◆ endFill()

template<typename _Scalar , int _Options, typename _StorageIndex >
EIGEN_DEPRECATED void Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::endFill ( )
inline

◆ fill() [1/2]

template<typename _Scalar , int _Options, typename _StorageIndex >
EIGEN_DEPRECATED Scalar & Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::fill ( Index  i)
inline

◆ fill() [2/2]

template<typename _Scalar , int _Options, typename _StorageIndex >
EIGEN_DEPRECATED Scalar & Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::fill ( Index  r,
Index  c 
)
inline

◆ fillrand() [1/2]

template<typename _Scalar , int _Options, typename _StorageIndex >
EIGEN_DEPRECATED Scalar & Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::fillrand ( Index  i)
inline

◆ fillrand() [2/2]

template<typename _Scalar , int _Options, typename _StorageIndex >
EIGEN_DEPRECATED Scalar & Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::fillrand ( Index  r,
Index  c 
)
inline

◆ finalize()

template<typename _Scalar , int _Options, typename _StorageIndex >
void Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::finalize ( )
inline

◆ innerIndexPtr() [1/2]

template<typename _Scalar , int _Options, typename _StorageIndex >
EIGEN_STRONG_INLINE StorageIndex * Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::innerIndexPtr ( )
inline

◆ innerIndexPtr() [2/2]

template<typename _Scalar , int _Options, typename _StorageIndex >
EIGEN_STRONG_INLINE const StorageIndex * Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::innerIndexPtr ( ) const
inline

◆ innerNonZeroPtr() [1/2]

template<typename _Scalar , int _Options, typename _StorageIndex >
StorageIndex * Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::innerNonZeroPtr ( )
inline

◆ innerNonZeroPtr() [2/2]

template<typename _Scalar , int _Options, typename _StorageIndex >
const StorageIndex * Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::innerNonZeroPtr ( ) const
inline

◆ innerSize()

template<typename _Scalar , int _Options, typename _StorageIndex >
EIGEN_STRONG_INLINE Index Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::innerSize ( ) const
inline

◆ insert() [1/2]

template<typename _Scalar , int _Options, typename _StorageIndex >
Scalar & Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::insert ( Index  i)
inline

◆ insert() [2/2]

template<typename _Scalar , int _Options, typename _StorageIndex >
Scalar & Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::insert ( Index  row,
Index  col 
)
inline

◆ insertBack()

template<typename _Scalar , int _Options, typename _StorageIndex >
Scalar & Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::insertBack ( Index  i)
inline

◆ insertBackByOuterInner()

template<typename _Scalar , int _Options, typename _StorageIndex >
Scalar & Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::insertBackByOuterInner ( Index  outer,
Index  inner 
)
inline

◆ insertBackByOuterInnerUnordered()

template<typename _Scalar , int _Options, typename _StorageIndex >
Scalar & Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::insertBackByOuterInnerUnordered ( Index  outer,
Index  inner 
)
inline

◆ insertBackUnordered()

template<typename _Scalar , int _Options, typename _StorageIndex >
Scalar & Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::insertBackUnordered ( Index  i)
inline

◆ nonZeros()

template<typename _Scalar , int _Options, typename _StorageIndex >
Index Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::nonZeros ( ) const
inline
Returns
the number of non zero coefficients

◆ operator=() [1/3]

template<typename _Scalar , int _Options, typename _StorageIndex >
template<typename OtherDerived >
SparseVector & Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::operator= ( const SparseMatrixBase< OtherDerived > &  other)
inline

◆ operator=() [2/3]

template<typename _Scalar , int _Options, typename _StorageIndex >
template<typename Lhs , typename Rhs >
SparseVector & Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::operator= ( const SparseSparseProduct< Lhs, Rhs > &  product)
inline

◆ operator=() [3/3]

template<typename _Scalar , int _Options, typename _StorageIndex >
SparseVector & Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::operator= ( const SparseVector< _Scalar, _Options, _StorageIndex > &  other)
inline

◆ outerIndexPtr() [1/2]

template<typename _Scalar , int _Options, typename _StorageIndex >
StorageIndex * Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::outerIndexPtr ( )
inline

◆ outerIndexPtr() [2/2]

template<typename _Scalar , int _Options, typename _StorageIndex >
const StorageIndex * Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::outerIndexPtr ( ) const
inline

◆ outerSize()

template<typename _Scalar , int _Options, typename _StorageIndex >
EIGEN_STRONG_INLINE Index Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::outerSize ( ) const
inline

◆ prune()

template<typename _Scalar , int _Options, typename _StorageIndex >
void Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::prune ( const Scalar reference,
const RealScalar epsilon = NumTraits<RealScalar>::dummy_precision() 
)
inline

Suppresses all nonzeros which are much smaller than reference under the tolerance epsilon.

◆ reserve()

template<typename _Scalar , int _Options, typename _StorageIndex >
void Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::reserve ( Index  reserveSize)
inline

◆ resize() [1/2]

template<typename _Scalar , int _Options, typename _StorageIndex >
void Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::resize ( Index  newSize)
inline

Resizes the sparse vector to newSize This method deletes all entries, thus leaving an empty sparse vector.

See also
conservativeResize(), setZero()

◆ resize() [2/2]

template<typename _Scalar , int _Options, typename _StorageIndex >
void Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::resize ( Index  rows,
Index  cols 
)
inline

Resizes the sparse vector to rows x cols.

This method is provided for compatibility with matrices. For a column vector, cols must be equal to 1. For a row vector, rows must be equal to 1.

See also
resize(Index)

◆ resizeNonZeros()

template<typename _Scalar , int _Options, typename _StorageIndex >
void Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::resizeNonZeros ( Index  size)
inline

◆ rows()

template<typename _Scalar , int _Options, typename _StorageIndex >
EIGEN_STRONG_INLINE Index Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::rows ( ) const
inline

◆ setZero()

template<typename _Scalar , int _Options, typename _StorageIndex >
void Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::setZero ( )
inline

◆ startFill()

template<typename _Scalar , int _Options, typename _StorageIndex >
EIGEN_DEPRECATED void Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::startFill ( Index  reserve)
inline

◆ startVec()

template<typename _Scalar , int _Options, typename _StorageIndex >
void Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::startVec ( Index  outer)
inline

◆ sum()

template<typename _Scalar , int _Options, typename _Index >
internal::traits< SparseVector< _Scalar, _Options, _Index > >::Scalar Eigen::SparseVector< _Scalar, _Options, _Index >::sum

Overloaded for performance.

◆ swap() [1/2]

template<typename _Scalar , int _Options, typename _StorageIndex >
template<int OtherOptions>
void Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::swap ( SparseMatrix< Scalar, OtherOptions, StorageIndex > &  other)
inline

◆ swap() [2/2]

template<typename _Scalar , int _Options, typename _StorageIndex >
void Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::swap ( SparseVector< _Scalar, _Options, _StorageIndex > &  other)
inline

Swaps the values of *this and other.

Overloaded for performance: this version performs a shallow swap by swapping pointers and attributes only.

See also
SparseMatrixBase::swap()

◆ valuePtr() [1/2]

template<typename _Scalar , int _Options, typename _StorageIndex >
EIGEN_STRONG_INLINE Scalar * Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::valuePtr ( )
inline

◆ valuePtr() [2/2]

template<typename _Scalar , int _Options, typename _StorageIndex >
EIGEN_STRONG_INLINE const Scalar * Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::valuePtr ( ) const
inline

Friends And Related Function Documentation

◆ operator<<

template<typename _Scalar , int _Options, typename _StorageIndex >
std::ostream & operator<< ( std::ostream &  s,
const SparseVector< _Scalar, _Options, _StorageIndex > &  m 
)
friend

Member Data Documentation

◆ m_data

template<typename _Scalar , int _Options, typename _StorageIndex >
Storage Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::m_data
protected

◆ m_size

template<typename _Scalar , int _Options, typename _StorageIndex >
Index Eigen::SparseVector< _Scalar, _Options, _StorageIndex >::m_size
protected

The documentation for this class was generated from the following files: