10#ifndef EIGEN_SOLVERBASE_H
11#define EIGEN_SOLVERBASE_H
17template<
typename Derived>
19 template<
bool Transpose_,
typename Rhs>
20 static void run(
const Derived& solver,
const Rhs& b) { solver.template _check_solve_assertion<Transpose_>(b); }
23template<
typename Derived>
28 template<
bool Transpose_,
typename Rhs>
29 static void run(
const type& transpose,
const Rhs& b)
35template<
typename Scalar,
typename Derived>
40 template<
bool Transpose_,
typename Rhs>
41 static void run(
const type& adjoint,
const Rhs& b)
67template<
typename Derived>
74 typedef Scalar CoeffReturnType;
76 template<
typename Derived_>
90 NumDimensions = int(MaxSizeAtCompileTime) == 1 ? 0 : bool(IsVectorAtCompileTime) ? 1 : 2
104 template<
typename Rhs>
105 inline const Solve<Derived, Rhs>
129 ConstTransposeReturnType
130 >::type AdjointReturnType;
147 template<
bool Transpose_,
typename Rhs>
148 void _check_solve_assertion(
const Rhs& b)
const {
149 EIGEN_ONLY_USED_FOR_DEBUG(b);
150 eigen_assert(
derived().m_isInitialized &&
"Solver is not initialized.");
151 eigen_assert((Transpose_?
derived().
cols():
derived().
rows())==b.
rows() &&
"SolverBase::solve(): invalid number of rows of the right hand side matrix b");
157template<
typename Derived>
Generic expression where a coefficient-wise unary operator is applied to an expression.
Definition CwiseUnaryOp.h:56
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const internal::remove_all< XprTypeNested >::type & nestedExpression() const
Definition CwiseUnaryOp.h:80
Expression of a diagonal/subdiagonal/superdiagonal in a matrix.
Definition Diagonal.h:65
Base class for all dense matrices, vectors, and expressions.
Definition MatrixBase.h:50
Pseudo expression representing a solving operation.
Definition Solve.h:63
A base class for matrix decomposition and solvers.
Definition SolverBase.h:69
AdjointReturnType adjoint() const
Definition SolverBase.h:140
SolverBase()
Definition SolverBase.h:94
ConstTransposeReturnType transpose() const
Definition SolverBase.h:121
const Solve< Derived, Rhs > solve(const MatrixBase< Rhs > &b) const
Definition SolverBase.h:106
EIGEN_DEVICE_FUNC Derived & derived()
Definition EigenBase.h:46
Expression of the transpose of a matrix.
Definition Transpose.h:54
Namespace containing all symbols from the Eigen library.
Definition common.h:81
Definition EigenBase.h:30
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index cols() const EIGEN_NOEXCEPT
Definition EigenBase.h:63
EIGEN_DEVICE_FUNC Derived & derived()
Definition EigenBase.h:46
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index rows() const EIGEN_NOEXCEPT
Definition EigenBase.h:60
Definition Constants.h:522
Definition Constants.h:513
Definition XprHelper.h:501
Definition UnaryFunctors.h:109
Definition XprHelper.h:282
Definition SolverBase.h:18
Definition ForwardDeclarations.h:17