|
enum | { IsColVector = internal::traits<SparseVector>::IsColVector
} |
|
enum | { Options = _Options
} |
|
typedef internal::CompressedStorage< Scalar, StorageIndex > | Storage |
|
typedef Base::InnerIterator | InnerIterator |
|
typedef Base::ReverseInnerIterator | ReverseInnerIterator |
|
typedef SparseMatrixBase< SparseVector< _Scalar, _Options, _StorageIndex > > | Base |
|
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, StorageIndex > | PlainObject |
|
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, ColsAtCompileTime > | DenseMatrixType |
| 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 |
|
typedef Eigen::Index | Index |
| The interface type of indices. More...
|
|
typedef internal::traits< SparseVector< _Scalar, _Options, _StorageIndex > >::StorageKind | StorageKind |
|
|
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 Scalar * | valuePtr () const |
|
EIGEN_STRONG_INLINE Scalar * | valuePtr () |
|
EIGEN_STRONG_INLINE const StorageIndex * | innerIndexPtr () const |
|
EIGEN_STRONG_INLINE StorageIndex * | innerIndexPtr () |
|
const StorageIndex * | outerIndexPtr () const |
|
StorageIndex * | outerIndexPtr () |
|
const StorageIndex * | innerNonZeroPtr () const |
|
StorageIndex * | innerNonZeroPtr () |
|
Storage & | data () |
|
const Storage & | data () const |
|
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 & | insertBackByOuterInnerUnordered (Index outer, Index inner) |
|
Scalar & | insertBackUnordered (Index i) |
|
Scalar & | insert (Index row, Index col) |
|
Scalar & | insert (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) |
|
SparseVector & | operator= (const SparseVector &other) |
|
template<typename OtherDerived > |
SparseVector & | operator= (const SparseMatrixBase< OtherDerived > &other) |
|
template<typename Lhs , typename Rhs > |
SparseVector & | operator= (const SparseSparseProduct< Lhs, Rhs > &product) |
|
| ~SparseVector () |
| Destructor. More...
|
|
Scalar | sum () const |
| Overloaded for performance. More...
|
|
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 () |
|
EIGEN_DEPRECATED Storage & | _data () |
|
EIGEN_DEPRECATED const Storage & | _data () const |
|
Index | nonZeros () const |
|
const Scalar * | valuePtr () const |
|
Scalar * | valuePtr () |
|
const StorageIndex * | innerIndexPtr () const |
|
StorageIndex * | innerIndexPtr () |
|
const StorageIndex * | outerIndexPtr () const |
|
StorageIndex * | outerIndexPtr () |
|
const StorageIndex * | innerNonZeroPtr () const |
|
StorageIndex * | innerNonZeroPtr () |
|
bool | isCompressed () const |
|
const Map< const Array< Scalar, Dynamic, 1 > > | coeffs () const |
|
Map< Array< Scalar, Dynamic, 1 > > | coeffs () |
|
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 |
|
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 |
|
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 TopicCustomizing_Plugins by defining the preprocessor symbol EIGEN_SPARSEVECTOR_PLUGIN
.