Base class of any sparse matrices or sparse expressions. More...
Classes | |
struct | ConstSelfAdjointViewReturnType |
struct | CwiseProductDenseReturnType |
struct | SelfAdjointViewReturnType |
Public Types | |
enum | { RowsAtCompileTime , ColsAtCompileTime , SizeAtCompileTime , MaxRowsAtCompileTime , MaxColsAtCompileTime , MaxSizeAtCompileTime , IsVectorAtCompileTime , NumDimensions , Flags , IsRowMajor , InnerSizeAtCompileTime } |
typedef std::conditional_t< NumTraits< Scalar >::IsComplex, CwiseUnaryOp< internal::scalar_conjugate_op< Scalar >, Eigen::Transpose< const Derived > >, Transpose< const Derived > > | AdjointReturnType |
typedef Transpose< const Derived > | ConstTransposeReturnType |
typedef Matrix< StorageIndex, Dynamic, 1 > | IndexVector |
typedef internal::add_const_on_value_type_if_arithmetic< typename internal::packet_traits< Scalar >::type >::type | PacketReturnType |
typedef internal::packet_traits< Scalar >::type | PacketScalar |
typedef SparseMatrix< Scalar, Flags &RowMajorBit ? RowMajor :ColMajor, StorageIndex > | PlainObject |
typedef internal::traits< Derived >::Scalar | Scalar |
typedef Matrix< Scalar, Dynamic, 1 > | ScalarVector |
typedef SparseMatrixBase | StorageBaseType |
typedef internal::traits< Derived >::StorageIndex | StorageIndex |
typedef internal::traits< Derived >::StorageKind | StorageKind |
typedef Transpose< Derived > | TransposeReturnType |
typedef Scalar | value_type |
Public Types inherited from Eigen::EigenBase< Derived > | |
typedef Eigen::Index | Index |
The interface type of indices. More... | |
typedef internal::traits< Derived >::StorageKind | StorageKind |
Public Member Functions | |
const AdjointReturnType | adjoint () const |
RealScalar | blueNorm () const |
Index | cols () const |
template<typename OtherDerived > | |
const SparseMatrixBase< Derived >::template CwiseProductDenseReturnType< OtherDerived >::Type | cwiseProduct (const MatrixBase< OtherDerived > &other) const |
template<typename OtherDerived > | |
const CwiseProductDenseReturnType< OtherDerived >::Type | cwiseProduct (const MatrixBase< OtherDerived > &other) const |
template<typename OtherDerived > | |
internal::traits< Derived >::Scalar | dot (const MatrixBase< OtherDerived > &other) const |
template<typename OtherDerived > | |
Scalar | dot (const MatrixBase< OtherDerived > &other) const |
template<typename OtherDerived > | |
internal::traits< Derived >::Scalar | dot (const SparseMatrixBase< OtherDerived > &other) const |
template<typename OtherDerived > | |
Scalar | dot (const SparseMatrixBase< OtherDerived > &other) const |
const internal::eval< Derived >::type | eval () const |
Index | innerSize () const |
template<typename OtherDerived > | |
bool | isApprox (const MatrixBase< OtherDerived > &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
template<typename OtherDerived > | |
bool | isApprox (const SparseMatrixBase< OtherDerived > &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
bool | isRValue () const |
bool | isVector () const |
Derived & | markAsRValue () |
RealScalar | norm () const |
template<typename OtherDerived > | |
const Product< Derived, OtherDerived > | operator* (const DiagonalBase< OtherDerived > &other) const |
template<typename OtherDerived > | |
const Product< Derived, OtherDerived > | operator* (const MatrixBase< OtherDerived > &other) const |
template<typename OtherDerived > | |
const Product< Derived, OtherDerived, AliasFreeProduct > | operator* (const SparseMatrixBase< OtherDerived > &other) const |
Derived & | operator*= (const Scalar &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 > | |
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 > | |
Derived & | operator-= (const SparseMatrixBase< OtherDerived > &other) |
Derived & | operator/= (const Scalar &other) |
Derived & | operator= (const Derived &other) |
template<typename OtherDerived > | |
Derived & | operator= (const EigenBase< OtherDerived > &other) |
template<typename OtherDerived > | |
Derived & | operator= (const ReturnByValue< OtherDerived > &other) |
template<typename OtherDerived > | |
Derived & | operator= (const SparseMatrixBase< OtherDerived > &other) |
Index | outerSize () const |
const SparseView< Derived > | pruned (const Scalar &reference=Scalar(0), const RealScalar &epsilon=NumTraits< Scalar >::dummy_precision()) const |
Index | rows () const |
template<unsigned int UpLo> | |
SelfAdjointViewReturnType< UpLo >::Type | selfadjointView () |
template<unsigned int UpLo> | |
SparseMatrixBase< Derived >::template SelfAdjointViewReturnType< UpLo >::Type | selfadjointView () |
template<unsigned int UpLo> | |
ConstSelfAdjointViewReturnType< UpLo >::Type | selfadjointView () const |
template<unsigned int UpLo> | |
SparseMatrixBase< Derived >::template ConstSelfAdjointViewReturnType< UpLo >::Type | selfadjointView () const |
Index | size () const |
SparseMatrixBase () | |
RealScalar | squaredNorm () const |
Scalar | sum () const |
DenseMatrixType | toDense () const |
TransposeReturnType | transpose () |
const ConstTransposeReturnType | transpose () const |
template<int Mode> | |
const TriangularView< const Derived, Mode > | triangularView () const |
SparseSymmetricPermutationProduct< Derived, Upper|Lower > | twistedBy (const PermutationMatrix< Dynamic, Dynamic, StorageIndex > &perm) const |
Public Member Functions inherited from Eigen::EigenBase< Derived > | |
template<typename Dest > | |
void | addTo (Dest &dst) const |
template<typename Dest > | |
void | applyThisOnTheLeft (Dest &dst) const |
template<typename Dest > | |
void | applyThisOnTheRight (Dest &dst) const |
EIGEN_CONSTEXPR Index | cols () const EIGEN_NOEXCEPT |
Derived & | const_cast_derived () const |
const Derived & | const_derived () const |
Derived & | derived () |
const Derived & | derived () const |
template<typename Dest > | |
void | evalTo (Dest &dst) const |
EIGEN_CONSTEXPR Index | rows () const EIGEN_NOEXCEPT |
EIGEN_CONSTEXPR Index | size () const EIGEN_NOEXCEPT |
template<typename Dest > | |
void | subTo (Dest &dst) const |
Protected Member Functions | |
template<typename OtherDerived > | |
Derived & | assign (const OtherDerived &other) |
template<typename OtherDerived > | |
void | assignGeneric (const OtherDerived &other) |
Static Protected Member Functions | |
static StorageIndex | convert_index (const Index idx) |
Protected Attributes | |
bool | m_isRValue |
Private Member Functions | |
template<typename Dest > | |
void | evalTo (Dest &) const |
Base class of any sparse matrices or sparse expressions.
Derived | is the derived type, e.g. a sparse matrix type, or an expression, etc. |
This class can be extended with the help of the plugin mechanism described on the page Extending MatrixBase (and other classes) by defining the preprocessor symbol EIGEN_SPARSEMATRIXBASE_PLUGIN
.
Definition at line 28 of file SparseMatrixBase.h.
typedef std::conditional_t<NumTraits<Scalar>::IsComplex, CwiseUnaryOp<internal::scalar_conjugate_op<Scalar>, Eigen::Transpose<const Derived> >, Transpose<const Derived> > Eigen::SparseMatrixBase< Derived >::AdjointReturnType |
Definition at line 114 of file SparseMatrixBase.h.
typedef Transpose<const Derived> Eigen::SparseMatrixBase< Derived >::ConstTransposeReturnType |
Definition at line 116 of file SparseMatrixBase.h.
typedef Matrix<StorageIndex,Dynamic,1> Eigen::SparseMatrixBase< Derived >::IndexVector |
Definition at line 53 of file SparseMatrixBase.h.
typedef internal::add_const_on_value_type_if_arithmetic< typename internal::packet_traits<Scalar>::type >::type Eigen::SparseMatrixBase< Derived >::PacketReturnType |
Definition at line 49 of file SparseMatrixBase.h.
typedef internal::packet_traits<Scalar>::type Eigen::SparseMatrixBase< Derived >::PacketScalar |
Definition at line 40 of file SparseMatrixBase.h.
typedef SparseMatrix<Scalar, Flags&RowMajorBit ? RowMajor : ColMajor, StorageIndex> Eigen::SparseMatrixBase< Derived >::PlainObject |
Definition at line 119 of file SparseMatrixBase.h.
typedef internal::traits<Derived>::Scalar Eigen::SparseMatrixBase< Derived >::Scalar |
Definition at line 33 of file SparseMatrixBase.h.
typedef Matrix<Scalar,Dynamic,1> Eigen::SparseMatrixBase< Derived >::ScalarVector |
Definition at line 54 of file SparseMatrixBase.h.
typedef SparseMatrixBase Eigen::SparseMatrixBase< Derived >::StorageBaseType |
Definition at line 51 of file SparseMatrixBase.h.
typedef internal::traits<Derived>::StorageIndex Eigen::SparseMatrixBase< Derived >::StorageIndex |
The integer type used to store indices within a SparseMatrix. For a SparseMatrix<Scalar,Options,IndexType>
it an alias of the third template parameter IndexType
.
Definition at line 45 of file SparseMatrixBase.h.
typedef internal::traits<Derived>::StorageKind Eigen::SparseMatrixBase< Derived >::StorageKind |
Definition at line 41 of file SparseMatrixBase.h.
typedef Transpose<Derived> Eigen::SparseMatrixBase< Derived >::TransposeReturnType |
Definition at line 115 of file SparseMatrixBase.h.
typedef Scalar Eigen::SparseMatrixBase< Derived >::value_type |
The numeric type of the expression' coefficients, e.g. float, double, int or std::complex<float>, etc.
It is an alias for the Scalar type
Definition at line 38 of file SparseMatrixBase.h.
anonymous enum |
Enumerator | |
---|---|
RowsAtCompileTime | The number of rows at compile-time. This is just a copy of the value provided by the Derived type. If a value is not known at compile-time, it is set to the Dynamic constant. |
ColsAtCompileTime | The number of columns at compile-time. This is just a copy of the value provided by the Derived type. If a value is not known at compile-time, it is set to the Dynamic constant. |
SizeAtCompileTime | This is equal to the number of coefficients, i.e. the number of rows times the number of columns, or to Dynamic if this is not known at compile-time.
|
MaxRowsAtCompileTime | |
MaxColsAtCompileTime | |
MaxSizeAtCompileTime | |
IsVectorAtCompileTime | This is set to true if either the number of rows or the number of columns is known at compile-time to be equal to 1. Indeed, in that case, we are dealing with a column-vector (if there is only one column) or with a row-vector (if there is only one row). |
NumDimensions | This value is equal to Tensor::NumDimensions, i.e. 0 for scalars, 1 for vectors, and 2 for matrices. |
Flags | This stores expression Flags flags which may or may not be inherited by new expressions constructed from this one. See the list of flags. |
IsRowMajor | |
InnerSizeAtCompileTime |
Definition at line 59 of file SparseMatrixBase.h.
|
inline |
Definition at line 197 of file SparseMatrixBase.h.
|
inline |
Definition at line 357 of file SparseMatrixBase.h.
|
inlineprotected |
|
inlineprotected |
|
inline |
Definition at line 94 of file SparseDot.h.
|
inline |
|
inlinestaticprotected |
Definition at line 390 of file SparseMatrixBase.h.
|
inline |
Definition at line 965 of file SparseCwiseBinaryOp.h.
|
inline |
internal::traits<Derived>::Scalar Eigen::SparseMatrixBase< Derived >::dot | ( | const MatrixBase< OtherDerived > & | other | ) | const |
Definition at line 20 of file SparseDot.h.
Scalar Eigen::SparseMatrixBase< Derived >::dot | ( | const MatrixBase< OtherDerived > & | other | ) | const |
internal::traits<Derived>::Scalar Eigen::SparseMatrixBase< Derived >::dot | ( | const SparseMatrixBase< OtherDerived > & | other | ) | const |
Definition at line 45 of file SparseDot.h.
Scalar Eigen::SparseMatrixBase< Derived >::dot | ( | const SparseMatrixBase< OtherDerived > & | other | ) | const |
|
inline |
Notice that in the case of a plain matrix or vector (not an expression) this function just returns a const reference, in order to avoid a useless copy.
Definition at line 378 of file SparseMatrixBase.h.
|
private |
|
inline |
Definition at line 192 of file SparseMatrixBase.h.
|
inline |
Definition at line 369 of file SparseMatrixBase.h.
bool Eigen::SparseMatrixBase< Derived >::isApprox | ( | const SparseMatrixBase< OtherDerived > & | other, |
const RealScalar & | prec = NumTraits<Scalar>::dummy_precision() |
||
) | const |
Definition at line 19 of file SparseFuzzy.h.
|
inline |
Definition at line 194 of file SparseMatrixBase.h.
|
inline |
Definition at line 186 of file SparseMatrixBase.h.
|
inline |
Definition at line 195 of file SparseMatrixBase.h.
|
inline |
Definition at line 86 of file SparseDot.h.
|
inline |
Definition at line 303 of file SparseMatrixBase.h.
|
inline |
Definition at line 320 of file SparseMatrixBase.h.
|
inline |
ref
is a meaningful non zero reference value. Definition at line 31 of file SparseProduct.h.
|
inline |
Definition at line 128 of file SparseCwiseUnaryOp.h.
Derived& Eigen::SparseMatrixBase< Derived >::operator*= | ( | const SparseMatrixBase< OtherDerived > & | other | ) |
Derived & Eigen::SparseMatrixBase< Derived >::operator+= | ( | const DiagonalBase< OtherDerived > & | other | ) |
Definition at line 948 of file SparseCwiseBinaryOp.h.
Derived & Eigen::SparseMatrixBase< Derived >::operator+= | ( | const EigenBase< OtherDerived > & | other | ) |
Implementation of SparseMatrixBase and SparseCwise functions/operators
Definition at line 916 of file SparseCwiseBinaryOp.h.
|
inline |
Definition at line 941 of file SparseCwiseBinaryOp.h.
Derived & Eigen::SparseMatrixBase< Derived >::operator-= | ( | const DiagonalBase< OtherDerived > & | other | ) |
Definition at line 956 of file SparseCwiseBinaryOp.h.
Derived & Eigen::SparseMatrixBase< Derived >::operator-= | ( | const EigenBase< OtherDerived > & | other | ) |
Definition at line 924 of file SparseCwiseBinaryOp.h.
|
inline |
Definition at line 933 of file SparseCwiseBinaryOp.h.
|
inline |
Definition at line 140 of file SparseCwiseUnaryOp.h.
|
inline |
Definition at line 45 of file SparseAssign.h.
Derived & Eigen::SparseMatrixBase< Derived >::operator= | ( | const EigenBase< OtherDerived > & | other | ) |
Definition at line 19 of file SparseAssign.h.
Derived & Eigen::SparseMatrixBase< Derived >::operator= | ( | const ReturnByValue< OtherDerived > & | other | ) |
Definition at line 27 of file SparseAssign.h.
|
inline |
Definition at line 36 of file SparseAssign.h.
|
inline |
Definition at line 189 of file SparseMatrixBase.h.
|
inline |
*this
with values smaller than reference * epsilon removed.This method is typically used in conjunction with the product of two sparse matrices to automatically prune the smallest values as follows:
where ref
is a meaningful non zero reference value.
Definition at line 248 of file SparseView.h.
|
inline |
|
inline |
SparseMatrixBase<Derived>::template SelfAdjointViewReturnType<UpLo>::Type Eigen::SparseMatrixBase< Derived >::selfadjointView | ( | ) |
Definition at line 187 of file SparseSelfAdjointView.h.
|
inline |
SparseMatrixBase<Derived>::template ConstSelfAdjointViewReturnType<UpLo>::Type Eigen::SparseMatrixBase< Derived >::selfadjointView | ( | ) | const |
Implementation of SparseMatrixBase methods
Definition at line 180 of file SparseSelfAdjointView.h.
|
inline |
|
inline |
Definition at line 79 of file SparseDot.h.
internal::traits< Derived >::Scalar Eigen::SparseMatrixBase< Derived >::sum |
Definition at line 19 of file SparseRedux.h.
|
inline |
Definition at line 359 of file SparseMatrixBase.h.
|
inline |
Definition at line 355 of file SparseMatrixBase.h.
|
inline |
Definition at line 356 of file SparseMatrixBase.h.
|
inline |
Definition at line 184 of file SparseTriangularView.h.
|
inline |
*this
Definition at line 330 of file SparseMatrixBase.h.
|
protected |
Definition at line 388 of file SparseMatrixBase.h.