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