LinearSystemSolvers class

Constructors

LinearSystemSolvers(Matrix _matrix)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
orthogonalize() Matrix
Perform Gram-Schmidt orthogonalization on the matrix
solve(Matrix b, {LinearSystemMethod method = LinearSystemMethod.gaussElimination}) Matrix
Solves a linear system Ax = b using the specified method.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

bareissAlgorithm(Matrix a, Matrix b) Matrix
Solves a linear system Ax = b using Montante's Method (Bareiss Algorithm).
conjugateGradient(Matrix a, Matrix b, {int maxIterations = 1000, double tolerance = 1e-10}) Matrix
Solves a linear system Ax = b using the Conjugate Gradient method.
cramersRule(Matrix a, Matrix b) Matrix
Solves a linear system Ax = b using Cramer's Rule.
gaussElimination(Matrix a, Matrix b) Matrix
Solves a linear system Ax = b using Gauss Elimination.
gaussJordanElimination(Matrix a, Matrix b) Matrix
Solves a linear system Ax = b using Gauss-Jordan Elimination.
gaussSeidel(Matrix a, Matrix b, {int maxIterations = 1000, double tolerance = 1e-10}) Matrix
Solves a linear system Ax = b using the Gauss-Seidel method.
gramSchmidt(Matrix a, Matrix b) Matrix
Solves a linear system Ax = b using the Gram-Schmidt orthogonalization method.
inverseMatrix(Matrix a, Matrix b) Matrix
Solves a linear system Ax = b using the inverse matrix method.
jacobi(Matrix a, Matrix b, {int maxIterations = 1000, double tolerance = 1e-10}) Matrix
Solves a linear system Ax = b using the Jacobi method.
leastSquares(Matrix a, Matrix b) Matrix
Solves a linear system Ax = b using the least squares method.
luDecompositionSolve(Matrix a, Matrix b) Matrix
LU decomposition Doolittle method.
ridgeRegression(Matrix a, Matrix b, double alpha) Matrix
Solves a linear equation system Ax = b with Ridge Regression (L2 regularization).
sor(Matrix a, Matrix b, double omega, {int maxIterations = 1000, double tolerance = 1e-10}) Matrix
Solves a linear system Ax = b using the Successive Over-Relaxation (SOR) method.