|
| enum | { IsColVector = internal::traits<SparseVector>::IsColVector
} |
| |
| enum | { Options = _Options
} |
| |
| typedef internal::CompressedStorage< Scalar, StorageIndex > | Storage |
| |
| typedef Base::InnerIterator | InnerIterator |
| |
| typedef Base::ReverseInnerIterator | ReverseInnerIterator |
| |
| enum | {
RowsAtCompileTime = internal::traits<Derived>::RowsAtCompileTime
, ColsAtCompileTime = internal::traits<Derived>::ColsAtCompileTime
, SizeAtCompileTime
, MaxRowsAtCompileTime = RowsAtCompileTime
,
MaxColsAtCompileTime = ColsAtCompileTime
, MaxSizeAtCompileTime
, IsVectorAtCompileTime = RowsAtCompileTime == 1 || ColsAtCompileTime == 1
, Flags = internal::traits<Derived>::Flags
,
IsRowMajor = Flags&RowMajorBit ? 1 : 0
, InnerSizeAtCompileTime
, _HasDirectAccess = (int(Flags)&DirectAccessBit) ? 1 : 0
} |
| |
| typedef internal::traits< Derived >::Scalar | Scalar |
| |
| typedef Scalar | value_type |
| |
| typedef internal::packet_traits< Scalar >::type | PacketScalar |
| |
| typedef internal::traits< Derived >::StorageKind | StorageKind |
| |
| typedef internal::traits< Derived >::StorageIndex | StorageIndex |
| |
| typedef internal::add_const_on_value_type_if_arithmetic< typenameinternal::packet_traits< Scalar >::type >::type | PacketReturnType |
| |
| typedef SparseMatrixBase | StorageBaseType |
| |
| 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< Derived > | TransposeReturnType |
| |
| typedef internal::add_const< Transpose< constDerived > >::type | ConstTransposeReturnType |
| |
| typedef SparseMatrix< Scalar, Flags &RowMajorBit ? RowMajor :ColMajor, StorageIndex > | PlainObject |
| |
| typedef NumTraits< Scalar >::Real | RealScalar |
| |
| 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 |
| |
| typedef Matrix< Scalar, EIGEN_SIZE_MAX(RowsAtCompileTime, ColsAtCompileTime), EIGEN_SIZE_MAX(RowsAtCompileTime, ColsAtCompileTime)> | SquareMatrixType |
| |
| typedef Block< Derived, IsRowMajor?1:Dynamic, IsRowMajor?Dynamic:1, true > | InnerVectorReturnType |
| |
| typedef Block< const Derived, IsRowMajor?1:Dynamic, IsRowMajor?Dynamic:1, true > | ConstInnerVectorReturnType |
| |
| typedef Block< Derived, Dynamic, Dynamic, true > | InnerVectorsReturnType |
| |
| typedef Block< const Derived, Dynamic, Dynamic, true > | ConstInnerVectorsReturnType |
| |
| typedef Eigen::Index | Index |
| | The interface type of indices.
|
| |
|
| 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()) |
| |
| void | resize (Index rows, Index cols) |
| |
| void | resize (Index newSize) |
| |
| void | conservativeResize (Index newSize) |
| |
| 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) |
| |
| 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 () |
| |
| Scalar | sum () const |
| |
| 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 |
| |
| bool | isCompressed () const |
| |
| const Map< const Array< Scalar, Dynamic, 1 > > | coeffs () const |
| |
| Map< Array< Scalar, Dynamic, 1 > > | coeffs () |
| |
| const Derived & | derived () const |
| |
| Derived & | derived () |
| |
| Derived & | const_cast_derived () const |
| |
| Index | size () const |
| |
| bool | isVector () const |
| |
| bool | isRValue () const |
| |
| Derived & | markAsRValue () |
| |
| template<typename OtherDerived > |
| Derived & | operator+= (const SparseMatrixBase< OtherDerived > &other) |
| |
| template<typename OtherDerived > |
| Derived & | operator+= (const DiagonalBase< OtherDerived > &other) |
| |
| template<typename OtherDerived > |
| Derived & | operator+= (const EigenBase< OtherDerived > &other) |
| |
| template<typename OtherDerived > |
| EIGEN_STRONG_INLINE Derived & | operator+= (const SparseMatrixBase< OtherDerived > &other) |
| |
| template<typename OtherDerived > |
| Derived & | operator-= (const SparseMatrixBase< OtherDerived > &other) |
| |
| template<typename OtherDerived > |
| Derived & | operator-= (const DiagonalBase< OtherDerived > &other) |
| |
| template<typename OtherDerived > |
| Derived & | operator-= (const EigenBase< OtherDerived > &other) |
| |
| template<typename OtherDerived > |
| EIGEN_STRONG_INLINE Derived & | operator-= (const SparseMatrixBase< OtherDerived > &other) |
| |
| Derived & | operator*= (const Scalar &other) |
| |
| template<typename OtherDerived > |
| Derived & | operator*= (const SparseMatrixBase< OtherDerived > &other) |
| |
| Derived & | operator/= (const Scalar &other) |
| |
| template<typename OtherDerived > |
| EIGEN_STRONG_INLINE const CwiseProductDenseReturnType< OtherDerived >::Type | cwiseProduct (const MatrixBase< OtherDerived > &other) const |
| |
| template<typename OtherDerived > |
| EIGEN_STRONG_INLINE const SparseMatrixBase< Derived >::template CwiseProductDenseReturnType< OtherDerived >::Type | cwiseProduct (const MatrixBase< OtherDerived > &other) const |
| |
| template<typename OtherDerived > |
| const Product< Derived, OtherDerived > | operator* (const DiagonalBase< OtherDerived > &other) const |
| |
| template<typename OtherDerived > |
| const Product< Derived, OtherDerived, AliasFreeProduct > | operator* (const SparseMatrixBase< OtherDerived > &other) const |
| |
| template<typename OtherDerived > |
| const Product< Derived, OtherDerived > | operator* (const MatrixBase< OtherDerived > &other) const |
| |
| SparseSymmetricPermutationProduct< Derived, Upper|Lower > | twistedBy (const PermutationMatrix< Dynamic, Dynamic, StorageIndex > &perm) const |
| |
| template<int Mode> |
| const TriangularView< const Derived, Mode > | triangularView () const |
| |
| template<unsigned int UpLo> |
| ConstSelfAdjointViewReturnType< UpLo >::Type | selfadjointView () const |
| |
| template<unsigned int UpLo> |
| SelfAdjointViewReturnType< UpLo >::Type | selfadjointView () |
| |
| template<unsigned int UpLo> |
| SparseMatrixBase< Derived >::template ConstSelfAdjointViewReturnType< UpLo >::Type | selfadjointView () const |
| |
| template<unsigned int UpLo> |
| SparseMatrixBase< Derived >::template SelfAdjointViewReturnType< UpLo >::Type | selfadjointView () |
| |
| template<typename OtherDerived > |
| Scalar | dot (const MatrixBase< OtherDerived > &other) const |
| |
| template<typename OtherDerived > |
| Scalar | dot (const SparseMatrixBase< OtherDerived > &other) const |
| |
| template<typename OtherDerived > |
| internal::traits< Derived >::Scalar | dot (const MatrixBase< OtherDerived > &other) const |
| |
| template<typename OtherDerived > |
| internal::traits< Derived >::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 |
| |
| InnerVectorReturnType | innerVector (Index outer) |
| |
| const ConstInnerVectorReturnType | innerVector (Index outer) const |
| |
| InnerVectorsReturnType | innerVectors (Index outerStart, Index outerSize) |
| |
| const ConstInnerVectorsReturnType | innerVectors (Index outerStart, Index outerSize) const |
| |
| DenseMatrixType | toDense () const |
| |
| template<typename OtherDerived > |
| bool | isApprox (const SparseMatrixBase< OtherDerived > &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
| |
| template<typename OtherDerived > |
| bool | isApprox (const MatrixBase< OtherDerived > &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
| |
| const internal::eval< Derived >::type | eval () const |
| |
| const SparseView< Derived > | pruned (const Scalar &reference=Scalar(0), const RealScalar &epsilon=NumTraits< Scalar >::dummy_precision()) const |
| |
| EIGEN_DEVICE_FUNC const Derived & | const_derived () const |
| |
| template<typename Dest > |
| EIGEN_DEVICE_FUNC void | addTo (Dest &dst) const |
| |
| template<typename Dest > |
| EIGEN_DEVICE_FUNC void | subTo (Dest &dst) const |
| |
| template<typename Dest > |
| EIGEN_DEVICE_FUNC void | applyThisOnTheRight (Dest &dst) const |
| |
| template<typename Dest > |
| 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.