10 #ifndef EIGEN_SPARSEPRODUCT_H 11 #define EIGEN_SPARSEPRODUCT_H 15 template<
typename Lhs,
typename Rhs>
31 SparseMatrix<Scalar,0>,
38 template<
typename LhsNested,
typename RhsNested>
45 typedef typename _LhsNested::Scalar
Scalar;
50 LhsCoeffReadCost = _LhsNested::CoeffReadCost,
51 RhsCoeffReadCost = _RhsNested::CoeffReadCost,
52 LhsFlags = _LhsNested::Flags,
53 RhsFlags = _RhsNested::Flags,
55 RowsAtCompileTime = _LhsNested::RowsAtCompileTime,
56 ColsAtCompileTime = _RhsNested::ColsAtCompileTime,
57 MaxRowsAtCompileTime = _LhsNested::MaxRowsAtCompileTime,
58 MaxColsAtCompileTime = _RhsNested::MaxColsAtCompileTime,
78 template<
typename LhsNested,
typename RhsNested>
94 template<typename Lhs, typename Rhs>
96 : m_lhs(lhs), m_rhs(rhs), m_tolerance(0), m_conservative(true)
101 template<
typename Lhs,
typename Rhs>
103 : m_lhs(lhs), m_rhs(rhs), m_tolerance(tolerance), m_conservative(false)
114 template<
typename Dest>
135 ProductIsValid = _LhsNested::ColsAtCompileTime==
Dynamic 136 || _RhsNested::RowsAtCompileTime==
Dynamic 137 || int(_LhsNested::ColsAtCompileTime)==int(_RhsNested::RowsAtCompileTime),
138 AreVectors = _LhsNested::IsVectorAtCompileTime && _RhsNested::IsVectorAtCompileTime,
145 INVALID_VECTOR_VECTOR_PRODUCT__IF_YOU_WANTED_A_DOT_OR_COEFF_WISE_PRODUCT_YOU_MUST_USE_THE_EXPLICIT_FUNCTIONS)
147 INVALID_MATRIX_PRODUCT__IF_YOU_WANTED_A_COEFF_WISE_PRODUCT_YOU_MUST_USE_THE_EXPLICIT_FUNCTION)
158 template<
typename Derived>
159 template<
typename Lhs,
typename Rhs>
162 product.
evalTo(derived());
177 template<
typename Derived>
178 template<
typename OtherDerived>
187 #endif // EIGEN_SPARSEPRODUCT_H
SparseMatrixBase< SparseSparseProduct > Base
#define EIGEN_STRONG_INLINE
EIGEN_STRONG_INLINE Index cols() const
A versatible sparse matrix representation.
void evalTo(Dest &result) const
EIGEN_STRONG_INLINE SparseSparseProduct(const Lhs &lhs, const Rhs &rhs, const RealScalar &tolerance)
Holds information about the various numeric (i.e. scalar) types allowed by Eigen. ...
#define EIGEN_STATIC_ASSERT(CONDITION, MSG)
EIGEN_STRONG_INLINE const _RhsNested & rhs() const
remove_all< RhsNested >::type _RhsNested
promote_index_type< typename traits< _LhsNested >::Index, typename traits< _RhsNested >::Index >::type Index
#define EIGEN_SIZE_MIN_PREFER_FIXED(a, b)
EIGEN_STRONG_INLINE const _LhsNested & lhs() const
const unsigned int RowMajorBit
EIGEN_STRONG_INLINE const CwiseUnaryOp< internal::scalar_abs_op< Scalar >, const Derived > abs() const
Derived & operator=(const EigenBase< OtherDerived > &other)
const unsigned int HereditaryBits
Base class of any sparse matrices or sparse expressions.
internal::traits< SparseSparseProduct >::_RhsNested _RhsNested
SparseSparseProduct< LhsNested, RhsNested > Type
internal::traits< SparseSparseProduct >::_LhsNested _LhsNested
_LhsNested::Scalar Scalar
const ScalarMultipleReturnType operator*(const Scalar &scalar) const
const unsigned int EvalBeforeAssigningBit
internal::traits< Derived >::Index Index
SparseSparseProduct pruned(const Scalar &reference=0, const RealScalar &epsilon=NumTraits< RealScalar >::dummy_precision()) const
internal::conditional< TransposeLhs, SparseMatrix< Scalar, 0 >, typename internal::nested< Lhs, Rhs::RowsAtCompileTime >::type >::type LhsNested
#define EIGEN_DENSE_PUBLIC_INTERFACE(Derived)
internal::traits< Lhs >::Scalar Scalar
#define EIGEN_PREDICATE_SAME_MATRIX_SIZE(TYPE0, TYPE1)
const Derived & derived() const
EIGEN_STRONG_INLINE Index rows() const
internal::conditional< TransposeRhs, SparseMatrix< Scalar, 0 >, typename internal::nested< Rhs, Lhs::RowsAtCompileTime >::type >::type RhsNested
const unsigned int EvalBeforeNestingBit
NumTraits< Scalar >::Real RealScalar
remove_all< LhsNested >::type _LhsNested