numerics 0.1.0
Loading...
Searching...
No Matches
linear_solver.hpp
Go to the documentation of this file.
1/// @file linalg/solvers/linear_solver.hpp
2/// @brief Universal linear solver callable type.
3#pragma once
4
5#include "core/vector.hpp"
7#include <functional>
8
9namespace num {
10
11/// @brief Callable that solves \f$Ax=\mathrm{rhs}\f$.
12using LinearSolver = std::function<SolverResult(const Vector& rhs, Vector& x)>;
13
14} // namespace num
std::function< SolverResult(const Vector &rhs, Vector &x)> LinearSolver
Callable that solves .
Common result type shared by all iterative solvers.
Dense vector storage and operations.