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