GaussSeidelSolver constructor

GaussSeidelSolver({
  1. required RealMatrix matrix,
  2. required List<double> knownValues,
  3. double precision = 1.0e-10,
  4. int maxSteps = 30,
})

Given an equation in the form Ax = b, A is a square matrix containing n equations in n unknowns and b is the vector of the known values.

  • matrix is the matrix containing the equations;
  • knownValues is the vector with the known values;
  • precision determines how accurate the algorithm has to be;
  • maxSteps the maximum number of iterations the algorithm.

By default, maxSteps is set to 30.

Implementation

GaussSeidelSolver({
  required super.matrix,
  required super.knownValues,
  super.precision,
  this.maxSteps = 30,
});