|
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 newSize) |
|
void |
resize (Index rows, Index cols) |
|
Scalar |
sum () const |
|
void |
swap (SparseVector &other) |
|
|
~SparseVector () |
|
Public Member Functions inherited from Eigen::SparseCompressedBase< SparseVector< _Scalar, _Options, _StorageIndex > >
|
Map< Array< Scalar, Dynamic, 1 > > |
coeffs () |
|
const Map< const Array< Scalar, Dynamic, 1 > > |
coeffs () const |
|
StorageIndex * |
innerIndexPtr () |
|
const StorageIndex * |
innerIndexPtr () const |
|
StorageIndex * |
innerNonZeroPtr () |
|
const StorageIndex * |
innerNonZeroPtr () const |
|
bool |
isCompressed () const |
|
Index |
nonZeros () const |
|
StorageIndex * |
outerIndexPtr () |
|
const StorageIndex * |
outerIndexPtr () const |
|
Scalar * |
valuePtr () |
|
const Scalar * |
valuePtr () const |
|
Public Member Functions inherited from Eigen::SparseMatrixBase< SparseVector< _Scalar, _Options, _StorageIndex > >
|
Index |
cols () const |
|
const internal::eval< SparseVector< _Scalar, _Options, _StorageIndex > >::type |
eval () const |
|
Index |
innerSize () const |
|
bool |
isVector () const |
|
const Product< SparseVector< _Scalar, _Options, _StorageIndex >, OtherDerived, AliasFreeProduct > |
operator* (const 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 |
|
Index |
rows () const |
|
Index |
size () const |
|
SparseSymmetricPermutationProduct< SparseVector< _Scalar, _Options, _StorageIndex >, Upper|Lower > |
twistedBy (const PermutationMatrix< Dynamic, Dynamic, StorageIndex > &perm) const |
|
Public Member Functions inherited from Eigen::EigenBase< SparseVector< _Scalar, _Options, _StorageIndex > >
|
EIGEN_CONSTEXPR Index |
cols () const EIGEN_NOEXCEPT |
|
SparseVector< _Scalar, _Options, _StorageIndex > & |
derived () |
|
const SparseVector< _Scalar, _Options, _StorageIndex > & |
derived () const |
|
EIGEN_CONSTEXPR Index |
rows () const EIGEN_NOEXCEPT |
|
EIGEN_CONSTEXPR Index |
size () const EIGEN_NOEXCEPT |
|
template<typename _Scalar , int _Options, typename _StorageIndex >
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()
template<typename _Scalar , int _Options, typename _StorageIndex >
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)