GaussSeidelSolver.flatMatrix constructor

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

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.

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

Implementation

GaussSeidelSolver.flatMatrix({
  required List<double> equations,
  required List<double> constants,
  this.maxSteps = 30,
  double precision = 1.0e-10,
}) : super.flatMatrix(
        A: equations,
        b: constants,
        size: constants.length,
        precision: precision,
      );