solve method

  1. @override
List<double> solve()
override

Solves the Ax = b equation and returns the x vector.

Implementation

@override
List<double> solve() {
  // When 'w = 1', the SOR method simplifies to the Gauss-Seidel method.
  final sor = SORSolver(
    matrix: matrix,
    knownValues: knownValues,
    w: 1,
  );

  return sor.solve();
}