Go to the documentation of this file.
10 #ifndef EIGEN_SPARSEUTIL_H
11 #define EIGEN_SPARSEUTIL_H
16 #define EIGEN_DBG_SPARSE(X)
18 #define EIGEN_DBG_SPARSE(X) X
21 #define EIGEN_SPARSE_INHERIT_ASSIGNMENT_OPERATOR(Derived, Op) \
22 template<typename OtherDerived> \
23 EIGEN_STRONG_INLINE Derived& operator Op(const Eigen::SparseMatrixBase<OtherDerived>& other) \
25 return Base::operator Op(other.derived()); \
27 EIGEN_STRONG_INLINE Derived& operator Op(const Derived& other) \
29 return Base::operator Op(other); \
32 #define EIGEN_SPARSE_INHERIT_SCALAR_ASSIGNMENT_OPERATOR(Derived, Op) \
33 template<typename Other> \
34 EIGEN_STRONG_INLINE Derived& operator Op(const Other& scalar) \
36 return Base::operator Op(scalar); \
39 #define EIGEN_SPARSE_INHERIT_ASSIGNMENT_OPERATORS(Derived) \
40 EIGEN_SPARSE_INHERIT_ASSIGNMENT_OPERATOR(Derived, =)
43 #define EIGEN_SPARSE_PUBLIC_INTERFACE(Derived) \
44 EIGEN_GENERIC_PUBLIC_INTERFACE(Derived)
52 template<
typename _Scalar,
int _Flags = 0,
typename _StorageIndex =
int>
class SparseMatrix;
54 template<
typename _Scalar,
int _Flags = 0,
typename _StorageIndex =
int>
class SparseVector;
55 template<
typename _Scalar,
int _Flags = 0,
typename _StorageIndex =
int>
class MappedSparseMatrix;
59 template<
typename MatrixType>
class SparseView;
67 template<
typename Lhs,
typename Rhs,
70 template<
typename Lhs,
typename Rhs,
76 template<
typename T,
int Rows,
int Cols,
int Flags>
struct sparse_eval;
79 :
sparse_eval<T, traits<T>::RowsAtCompileTime,traits<T>::ColsAtCompileTime,traits<T>::Flags>
89 template<
typename T,
int Rows,
int Flags>
struct sparse_eval<
T,Rows,1,Flags> {
97 template<
typename T,
int Rows,
int Cols,
int Flags>
struct sparse_eval {
122 :
sparse_eval<T, traits<T>::RowsAtCompileTime,traits<T>::ColsAtCompileTime, evaluator<T>::Flags>
125 template<
typename Decomposition,
typename RhsType>
131 template<
typename Derived>
161 template<typename Scalar, typename StorageIndex=typename SparseMatrix<Scalar>::StorageIndex >
186 #endif // EIGEN_SPARSEUTIL_H
SparseTriangularShape type
A sparse matrix class designed for matrix assembly purpose.
traits< T >::Scalar _Scalar
Namespace containing all symbols from the Eigen library.
A versatible sparse matrix representation.
static std::string debugName()
sparse_eval< RhsType, RhsType::RowsAtCompileTime, RhsType::ColsAtCompileTime, traits< RhsType >::Flags >::type PlainObject
SparseVector< _Scalar, ColMajor, _StorageIndex > type
traits< T >::Scalar _Scalar
traits< T >::Scalar _Scalar
SparseVector< _Scalar, RowMajor, _StorageIndex > type
traits< T >::StorageIndex _StorageIndex
SparseMatrix< _Scalar, _Options, _StorageIndex > type
SparseMatrixBase< Derived > type
const unsigned int RowMajorBit
LowerBoundIndex(Index val, bool ok)
traits< T >::Scalar _Scalar
const Scalar & value() const
SparseSelfAdjointShape type
const int CoherentAccessPattern
traits< T >::Scalar _Scalar
const StorageIndex & col() const
Triplet(const StorageIndex &i, const StorageIndex &j, const Scalar &v=Scalar(0))
Matrix< _Scalar, 1, 1 > type
traits< T >::StorageIndex _StorageIndex
traits< T >::StorageIndex _StorageIndex
traits< T >::StorageIndex _StorageIndex
Expression of a dense or sparse matrix with zero or too small values removed.
Array< int, Dynamic, 1 > v
Base class of any sparse matrices or sparse expressions.
Pseudo expression to manipulate a triangular sparse matrix as a selfadjoint matrix.
const StorageIndex & row() const
The matrix class, also used for vectors and row-vectors.
const int OuterRandomAccessPattern
SparseMatrix< _Scalar, _Options, _StorageIndex > type
const int RandomAccessPattern
const int InnerRandomAccessPattern
#define EIGEN_SIZE_MIN_PREFER_FIXED(a, b)
static std::string debugName()
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
gtsam
Author(s):
autogenerated on Fri Nov 1 2024 03:36:19