Backend enum and default backend selection.
Dense row-major matrix templated over scalar type T.
BasicMatrix< real > Matrix
Double-precision dense matrix with full backend dispatch (CPU + GPU).
BasicVector< real > Vector
Real-valued dense vector with full backend dispatch (CPU + GPU)
SolverResult jacobi(const Matrix &A, const Vector &b, Vector &x, real tol=1e-10, idx max_iter=1000, Backend backend=default_backend)
Jacobi iterative solver for Ax = b.
constexpr Backend default_backend
Common result type shared by all iterative solvers.
Dense vector storage and operations.