Class StandardMatrix
java.lang.Object
solvers.linearSystem.simple.matrix.Matrix
solvers.linearSystem.simple.matrix.StandardMatrix
This class provides a concrete implementation of the Matrix class that
is based in a two dimensional BigRational array.
The Gaussian Elimination Solver is sued to solve this system.
- Author:
- Jack Bradshaw
-
Field Summary
Fields inherited from class Matrix
basis, size, update_list -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidMakes every entry in the array 0get(int row, int col) Returns value a (row, col)BigRational[][]getArray()Returns the matrix as a BigRational[][] arraymultiply()Multiplies the previous basis by the matrixvoidprint()Prints the matrix to screenvoidwrite(int row, int col, BigRational v) Writes value v at position (row,col) in matrixMethods inherited from class Matrix
getUpdateList, reset, toBeUpdated
-
Constructor Details
-
StandardMatrix
-
-
Method Details
-
getArray
Description copied from class:MatrixReturns the matrix as a BigRational[][] array -
write
Description copied from class:MatrixWrites value v at position (row,col) in matrix -
get
Description copied from class:MatrixReturns value a (row, col) -
multiply
Description copied from class:MatrixMultiplies the previous basis by the matrix -
fillWithZeros
protected void fillWithZeros()Makes every entry in the array 0- Specified by:
fillWithZerosin classMatrix
-
print
-
getDeterminatnt
-