SORSolver constructor

SORSolver({
  1. required RealMatrix matrix,
  2. required List<double> knownValues,
  3. required double w,
  4. double precision = 1.0e-10,
  5. 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;
  • w is the relaxation factor;
  • maxSteps the maximum number of iterations the algorithm.

Implementation

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