solve method
Solves the Ax = b
equation and returns the x
vector containing the
solutions of the system.
Implementation
@override
List<double> solve() {
// When 'w = 1', the SOR method simplifies to the Gauss-Seidel method.
final sor = SORSolver(
equations: equations.toListOfList(),
constants: knownValues,
w: 1,
);
return sor.solve();
}