10 #ifndef EIGEN_SOLVERBASE_H
11 #define EIGEN_SOLVERBASE_H
17 template<
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); }
23 template<
typename Derived>
28 template<
bool Transpose_,
typename Rhs>
29 static void run(
const type& transpose,
const Rhs& b)
35 template<
typename Scalar,
typename Derived>
40 template<
bool Transpose_,
typename Rhs>
41 static void run(
const type& adjoint,
const Rhs& b)
67 template<
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");
157 template<
typename Derived>
168 #endif // EIGEN_SOLVERBASE_H
Definition: Constants.h:518
Namespace containing all symbols from the Eigen library.
Definition: LDLT.h:16
EIGEN_DEVICE_FUNC Derived & derived()
Definition: EigenBase.h:46
EIGEN_DEVICE_FUNC Index rows() const
Definition: EigenBase.h:60
Definition: EigenBase.h:30
Definition: SolverBase.h:18
Expression of the transpose of a matrix.
Definition: Transpose.h:54
EIGEN_DEVICE_FUNC Index cols() const
Definition: EigenBase.h:63
ConstTransposeReturnType transpose() const
Definition: SolverBase.h:121
Definition: Constants.h:509
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const internal::remove_all< XprTypeNested >::type & nestedExpression() const
Definition: CwiseUnaryOp.h:80
Definition: XprHelper.h:509
Expression of a diagonal/subdiagonal/superdiagonal in a matrix.
Definition: Diagonal.h:65
EIGEN_DEVICE_FUNC Derived & derived()
Definition: EigenBase.h:46
Pseudo expression representing a solving operation.
Definition: Solve.h:63
Definition: ForwardDeclarations.h:17
Generic expression where a coefficient-wise unary operator is applied to an expression.
Definition: CwiseUnaryOp.h:56
AdjointReturnType adjoint() const
Definition: SolverBase.h:140
SolverBase()
Definition: SolverBase.h:94
Base class for all dense matrices, vectors, and expressions.
Definition: MatrixBase.h:50
Definition: XprHelper.h:290
Definition: UnaryFunctors.h:109
const Solve< Derived, Rhs > solve(const MatrixBase< Rhs > &b) const
Definition: SolverBase.h:106
A base class for matrix decomposition and solvers.
Definition: SolverBase.h:69
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const internal::remove_all< MatrixTypeNested >::type & nestedExpression() const
Definition: Transpose.h:76