CholeskySolver class

Implementation of the "Cholesky decomposition" algorithm for solving a system of linear equations. It only works with Hermitian, positive-definite matrices.

Inheritance

Constructors

CholeskySolver({required List<List<double>> equations, required List<double> constants})
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.
CholeskySolver.flatMatrix({required List<double> equations, required List<double> constants})
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.

Properties

equations RealMatrix
The equations of the system to be solved.
latefinalinherited
hashCode int
The hash code for this object.
no setterinherited
knownValues List<double>
The vector containing the known values of the equation.
no setterinherited
precision double
The accuracy of the algorithm.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
The dimension of the system (which is N equations in N unknowns).
no setterinherited

Methods

determinant() double
Computes the determinant of the associated matrix.
inherited
hasSolution() bool
Computes whether the system can be solved or not.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
solve() List<double>
Solves the Ax = b equation and returns the x vector containing the solutions of the system.
override
toString() String
A string representation of this object.
inherited
toStringAugmented() String
Prints the augmented matrix of this instance, which is the equations matrix plus the known values vector to the right. For example, if...
inherited

Operators

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