version 0.4
Ikarus::Concepts::LinearSolverCheck Concept Reference

Concept to check if a linear solver implements all the needed functions for given vector and matrix types. More...

#include <ikarus/utils/concepts.hh>

Concept definition

template<typename LinearSolver, typename MatrixType, typename VectorType>
concept Ikarus::Concepts::LinearSolverCheck = requires(LinearSolver& linearSolver, MatrixType& Ax, VectorType& vec) {
linearSolver.analyzePattern(Ax);
linearSolver.factorize(Ax);
linearSolver.solve(vec, vec);
}
LinearSolverTemplate< double > LinearSolver
Definition: linearsolver.hh:234
Concept to check if a linear solver implements all the needed functions for given vector and matrix t...
Definition: concepts.hh:218

Detailed Description

Template Parameters
LinearSolverThe linear solver type.
MatrixTypeThe matrix type.
VectorTypeThe vector type.