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>
67 template<
typename Derived>
76 template<
typename Derived_>
90 NumDimensions =
int(MaxSizeAtCompileTime) == 1 ? 0 : bool(IsVectorAtCompileTime) ? 1 : 2
104 template<
typename Rhs>
123 return ConstTransposeReturnType(derived());
129 ConstTransposeReturnType
142 return AdjointReturnType(derived().transpose());
147 template<
bool Transpose_,
typename Rhs>
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 const Solve< Derived, Rhs > solve(const MatrixBase< Rhs > &b) const
void adjoint(const MatrixType &m)
internal::traits< Derived >::Scalar Scalar
static void run(const Derived &solver, const Rhs &b)
Expression of the transpose of a matrix.
static void run(const type &transpose, const Rhs &b)
Namespace containing all symbols from the Eigen library.
CwiseUnaryOp< Eigen::internal::scalar_conjugate_op< Scalar >, const Transpose< Derived > > type
EigenBase< Derived > Base
BiCGSTAB< SparseMatrix< double > > solver
Transpose< Derived > type
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const internal::remove_all< MatrixTypeNested >::type & nestedExpression() const
SolverBase< Derived > type
ConstTransposeReturnType transpose() const
static void run(const type &adjoint, const Rhs &b)
internal::conditional< NumTraits< Scalar >::IsComplex, CwiseUnaryOp< internal::scalar_conjugate_op< Scalar >, ConstTransposeReturnType >, ConstTransposeReturnType >::type AdjointReturnType
Pseudo expression representing a solving operation.
Generic expression where a coefficient-wise unary operator is applied to an expression.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const internal::remove_all< XprTypeNested >::type & nestedExpression() const
AdjointReturnType adjoint() const
A base class for matrix decomposition and solvers.
Base class for all dense matrices, vectors, and expressions.
internal::add_const< Transpose< const Derived > >::type ConstTransposeReturnType
void _check_solve_assertion(const Rhs &b) const
#define EIGEN_ONLY_USED_FOR_DEBUG(x)