Go to the documentation of this file.
10 #ifndef EIGEN_SPARSESOLVERBASE_H
11 #define EIGEN_SPARSESOLVERBASE_H
21 template<
typename Decomposition,
typename Rhs,
typename Dest>
28 static const Index NbColsAtOnce = 4;
29 Index rhsCols = rhs.cols();
35 for(
Index k=0; k<rhsCols; k+=NbColsAtOnce)
37 Index actualCols = std::min<Index>(rhsCols-k, NbColsAtOnce);
38 tmp.leftCols(actualCols) = rhs.middleCols(k,actualCols);
39 tmpX.leftCols(actualCols) = dec.solve(tmp.leftCols(actualCols));
40 dest.middleCols(k,actualCols) = tmpX.leftCols(actualCols).sparseView();
45 template<
typename Decomposition,
typename Rhs,
typename Dest>
53 dest_dense = dec.solve(rhs_dense);
54 dest = dest_dense.sparseView();
66 template<
typename Derived>
79 Derived&
derived() {
return *
static_cast<Derived*
>(
this); }
80 const Derived&
derived()
const {
return *
static_cast<const Derived*
>(
this); }
86 template<
typename Rhs>
99 template<
typename Rhs>
108 #ifndef EIGEN_PARSED_BY_DOXYGEN
110 template<
typename Rhs,
typename Dest>
115 #endif // EIGEN_PARSED_BY_DOXYGEN
124 #endif // EIGEN_SPARSESOLVERBASE_H
Namespace containing all symbols from the Eigen library.
void _solve_impl(const SparseMatrixBase< Rhs > &b, SparseMatrixBase< Dest > &dest) const
const unsigned int RowMajorBit
const Solve< Derived, Rhs > solve(const MatrixBase< Rhs > &b) const
A base class for sparse solvers.
Pseudo expression representing a solving operation.
#define EIGEN_STATIC_ASSERT(CONDITION, MSG)
enable_if< Rhs::ColsAtCompileTime!=1 &&Dest::ColsAtCompileTime!=1 >::type solve_sparse_through_dense_panels(const Decomposition &dec, const Rhs &rhs, Dest &dest)
Base class of any sparse matrices or sparse expressions.
const Derived & derived() const
The matrix class, also used for vectors and row-vectors.
const Solve< Derived, Rhs > solve(const SparseMatrixBase< Rhs > &b) const
Base class for all dense matrices, vectors, and expressions.
EIGEN_CONSTEXPR Index size(const T &x)
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:04:47