Contains the SystemOfLinearEquations class, which encodes systems of linear equations.
Author: Zach / cszach@proton.me
Array.<LinearEquation>numbernumberMatrixMatrixAugmentedMatrixSystemOfLinearEquationsfunctionEncodes systems of linear equations by storing instances of LinearEquations in an array.
Kind: inner class of SystemOfLinearEquations
Array.<LinearEquation>numbernumberMatrixMatrixAugmentedMatrixSystemOfLinearEquationsfunctionConstructs a new instance of SystemOfLinearEquations, which encodes a
system of linear equations.
| Param | Type | Description |
|---|---|---|
| equations | Array.<LinearEquation> |
Instances of LinearEquation for the system. |
Array.<LinearEquation>Array of linear equations of this system.
Kind: instance property of SystemOfLinearEquations
numberThe number of variables of this system.
Kind: instance property of SystemOfLinearEquations
numberThe number of linear equations in this system.
Kind: instance property of SystemOfLinearEquations
MatrixThe coefficient matrix of this system of linear equations, obtained by calling computeCoefficientMatrix.
Kind: instance property of SystemOfLinearEquations
MatrixThe constant matrix of this system of linear equations, obtained by calling computeConstantMatrix.
Kind: instance property of SystemOfLinearEquations
AugmentedMatrixThe augmented matrix of this system of linear equations, obtained by calling computeAugmentedMatrix.
Kind: instance property of SystemOfLinearEquations
SystemOfLinearEquationsCreates and returns a new instance that is the same as this instance.
Kind: instance method of SystemOfLinearEquations
Returns: SystemOfLinearEquations - A clone of this instance
Computes the coefficient matrix of this system of linear equations and assigns the matrix to the coefficientMatrix property.
Kind: instance method of SystemOfLinearEquations
Computes the constant matrix of this system of linear equations and assigns the matrix to the constantMatrix property.
Kind: instance method of SystemOfLinearEquations
Computes the augmented matrix of this system of linear equations and assigns the matrix to the augmentedMatrix property.
Kind: instance method of SystemOfLinearEquations
Computes the augmented matrix of this system of linear equations and assigns the matrix to the augmentedMatrix property provided that the coefficient matrix and the constant matrix have been computed.
Kind: instance method of SystemOfLinearEquations
Executes a function for each equation in this system.
Kind: instance method of SystemOfLinearEquations
| Param | Type | Description |
|---|---|---|
| callback | forEach |
The function to execute per iteration. |
| thisArg | object |
The argument to use as this in the function. |
functionKind: inner typedef of SystemOfLinearEquations
| Param | Type | Description |
|---|---|---|
| equation | LinearEquation |
The current equation being processed. |
| coefficients | Array.<number> |
The coefficients of the equation. |
| constant | number |
The constant term of the equation. |
| index | number |
The 0-based position of the equation in this.equations. |
| system | SystemOfLinearEquations |
The instance that this method was called upon. |