feat(solver/preconditioner): Implements preconditioner system

The system matrix for a problem may be poorly conditioned, preconditioners are supposed to efficiently estimate the inverse of the system matrix so that a simpler problem, with the approximate identity matrix may be solved instead. The problem is that the best approach to this varies with different fields. The preconditioner system implements infrastructure to define seperate preconditioners for different fields which are then composed together.
This commit is contained in:
2026-11-09 13:33:10 -05:00
parent 24d4c20f82
commit 9f4207bc6a
14 changed files with 322 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
#pragma once
#include "serif/solver/preconditioner/contract.hpp"
namespace serif::solver::preconditioner::strategies::inverse
{
/** @brief Directly solve a small dense system; optionally reject an unreliable infinity-norm condition estimate. */
struct DenseDirect final
{
static constexpr ApplicationContract application_contract{ApplicationContract::fixed_linear};
double minimum_reciprocal_condition{0.0};
};
} // namespace serif::solver::preconditioner::strategies::inverse