solve method
Solves the Ax = b
equation and returns the x
vector containing the
solutions of the system.
Implementation
@override
List<double> solve() {
final cholesky = equations.choleskyDecomposition();
// Solving Ly = b
final L = cholesky[0].toListOfList();
final b = knownValues;
final y = SystemSolver.forwardSubstitution(L, b);
// Solving Ux = y
final transposedL = cholesky[1].toListOfList();
final x = SystemSolver.backSubstitution(transposedL, y);
return x;
}