Expression of a dense or sparse matrix with zero or too small values removed.
More...
|
| typedef internal::remove_all_t< MatrixType > | NestedExpression |
| |
| enum | |
| |
| typedef internal::traits< SparseView< MatrixType > >::Scalar | Scalar |
| |
| typedef Scalar | value_type |
| |
| typedef internal::packet_traits< Scalar >::type | PacketScalar |
| |
| typedef internal::traits< SparseView< MatrixType > >::StorageKind | StorageKind |
| |
| typedef internal::traits< SparseView< MatrixType > >::StorageIndex | StorageIndex |
| |
| typedef internal::add_const_on_value_type_if_arithmetic< typename internal::packet_traits< Scalar >::type >::type | PacketReturnType |
| |
| typedef SparseMatrixBase | StorageBaseType |
| |
| typedef Matrix< StorageIndex, Dynamic, 1 > | IndexVector |
| |
| typedef Matrix< Scalar, Dynamic, 1 > | ScalarVector |
| |
| typedef std::conditional_t< NumTraits< Scalar >::IsComplex, CwiseUnaryOp< internal::scalar_conjugate_op< Scalar >, Eigen::Transpose< const SparseView< MatrixType > > >, Transpose< const SparseView< MatrixType > > > | AdjointReturnType |
| |
| typedef Transpose< SparseView< MatrixType > > | TransposeReturnType |
| |
| typedef Transpose< const SparseView< MatrixType > > | ConstTransposeReturnType |
| |
| typedef SparseMatrix< Scalar, Flags &RowMajorBit ? RowMajor :ColMajor, StorageIndex > | PlainObject |
| |
| typedef NumTraits< Scalar >::Real | RealScalar |
| |
| typedef std::conditional_t< HasDirectAccess_, const Scalar &, Scalar > | CoeffReturnType |
| |
| typedef CwiseNullaryOp< internal::scalar_constant_op< Scalar >, Matrix< Scalar, Dynamic, Dynamic > > | ConstantReturnType |
| |
| typedef Matrix< Scalar, RowsAtCompileTime, ColsAtCompileTime > | DenseMatrixType |
| |
| typedef Matrix< Scalar, internal::max_size_prefer_dynamic(RowsAtCompileTime, ColsAtCompileTime), internal::max_size_prefer_dynamic(RowsAtCompileTime, ColsAtCompileTime)> | SquareMatrixType |
| |
| typedef EigenBase< SparseView< MatrixType > > | Base |
| |
| typedef Eigen::Index | Index |
| | The interface type of indices. More...
|
| |
| typedef internal::traits< SparseView< MatrixType > >::StorageKind | StorageKind |
| |
|
| | SparseView (const MatrixType &mat, const Scalar &reference=Scalar(0), const RealScalar &epsilon=NumTraits< Scalar >::dummy_precision()) |
| |
| Index | rows () const |
| |
| Index | cols () const |
| |
| Index | innerSize () const |
| |
| Index | outerSize () const |
| |
| const internal::remove_all_t< MatrixTypeNested > & | nestedExpression () const |
| |
| Scalar | reference () const |
| |
| RealScalar | epsilon () const |
| |
| SparseView< MatrixType > & | operator= (const EigenBase< OtherDerived > &other) |
| |
| SparseView< MatrixType > & | operator= (const ReturnByValue< OtherDerived > &other) |
| |
| SparseView< MatrixType > & | operator= (const SparseMatrixBase< OtherDerived > &other) |
| |
| SparseView< MatrixType > & | operator= (const SparseView< MatrixType > &other) |
| |
| const SparseView< MatrixType > & | derived () const |
| |
| SparseView< MatrixType > & | derived () |
| |
| SparseView< MatrixType > & | 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 |
| |
| SparseView< MatrixType > & | markAsRValue () |
| |
| | SparseMatrixBase () |
| |
| SparseView< MatrixType > & | operator+= (const SparseMatrixBase< OtherDerived > &other) |
| |
| SparseView< MatrixType > & | operator+= (const DiagonalBase< OtherDerived > &other) |
| |
| SparseView< MatrixType > & | operator+= (const EigenBase< OtherDerived > &other) |
| |
| EIGEN_STRONG_INLINE SparseView< MatrixType > & | operator+= (const SparseMatrixBase< OtherDerived > &other) |
| |
| SparseView< MatrixType > & | operator-= (const SparseMatrixBase< OtherDerived > &other) |
| |
| SparseView< MatrixType > & | operator-= (const DiagonalBase< OtherDerived > &other) |
| |
| SparseView< MatrixType > & | operator-= (const EigenBase< OtherDerived > &other) |
| |
| EIGEN_STRONG_INLINE SparseView< MatrixType > & | operator-= (const SparseMatrixBase< OtherDerived > &other) |
| |
| SparseView< MatrixType > & | operator*= (const Scalar &other) |
| |
| SparseView< MatrixType > & | operator*= (const SparseMatrixBase< OtherDerived > &other) |
| |
| SparseView< MatrixType > & | operator/= (const Scalar &other) |
| |
| EIGEN_STRONG_INLINE const CwiseProductDenseReturnType< OtherDerived >::Type | cwiseProduct (const MatrixBase< OtherDerived > &other) const |
| |
| EIGEN_STRONG_INLINE const SparseMatrixBase< SparseView< MatrixType > >::template CwiseProductDenseReturnType< OtherDerived >::Type | cwiseProduct (const MatrixBase< OtherDerived > &other) const |
| |
| const Product< SparseView< MatrixType >, OtherDerived > | operator* (const DiagonalBase< OtherDerived > &other) const |
| |
| const Product< SparseView< MatrixType >, OtherDerived, AliasFreeProduct > | operator* (const SparseMatrixBase< OtherDerived > &other) const |
| |
| const Product< SparseView< MatrixType >, OtherDerived > | operator* (const MatrixBase< OtherDerived > &other) const |
| |
| SparseSymmetricPermutationProduct< SparseView< MatrixType >, Upper|Lower > | twistedBy (const PermutationMatrix< Dynamic, Dynamic, StorageIndex > &perm) const |
| |
| const TriangularView< const SparseView< MatrixType >, Mode > | triangularView () const |
| |
| ConstSelfAdjointViewReturnType< UpLo >::Type | selfadjointView () const |
| |
| SelfAdjointViewReturnType< UpLo >::Type | selfadjointView () |
| |
| SparseMatrixBase< SparseView< MatrixType > >::template ConstSelfAdjointViewReturnType< UpLo >::Type | selfadjointView () const |
| |
| SparseMatrixBase< SparseView< MatrixType > >::template SelfAdjointViewReturnType< UpLo >::Type | selfadjointView () |
| |
| Scalar | dot (const MatrixBase< OtherDerived > &other) const |
| |
| Scalar | dot (const SparseMatrixBase< OtherDerived > &other) const |
| |
| internal::traits< SparseView< MatrixType > >::Scalar | dot (const MatrixBase< OtherDerived > &other) const |
| |
| internal::traits< SparseView< MatrixType > >::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< SparseView< MatrixType > >::type | eval () const |
| |
| Scalar | sum () const |
| |
| const SparseView< SparseView< MatrixType > > | pruned (const Scalar &reference=Scalar(0), const RealScalar &epsilon=NumTraits< Scalar >::dummy_precision()) const |
| |
| constexpr EIGEN_DEVICE_FUNC SparseView< MatrixType > & | derived () |
| |
| constexpr EIGEN_DEVICE_FUNC const SparseView< MatrixType > & | derived () const |
| |
| EIGEN_DEVICE_FUNC SparseView< MatrixType > & | const_cast_derived () const |
| |
| EIGEN_DEVICE_FUNC const SparseView< MatrixType > & | 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 |
| |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE DeviceWrapper< SparseView< MatrixType >, Device > | device (Device &device) |
| |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE DeviceWrapper< const SparseView< MatrixType >, Device > | device (Device &device) const |
| |
template<typename MatrixType>
class Eigen::SparseView< MatrixType >
Expression of a dense or sparse matrix with zero or too small values removed.
- Template Parameters
-
| MatrixType | the type of the object of which we are removing the small entries |
This class represents an expression of a given dense or sparse matrix with entries smaller than reference * epsilon are removed. It is the return type of MatrixBase::sparseView() and SparseMatrixBase::pruned() and most of the time this is the only way it is used.
- See also
- MatrixBase::sparseView(), SparseMatrixBase::pruned()