Package org.djunits.value.vdouble.matrix
Class Determinant
java.lang.Object
org.djunits.value.vdouble.matrix.Determinant
Compute the determinant of a matrix.
- Author:
- Peter Knoppers
-
Method Summary
-
Method Details
-
det
public static double det(double[][] matrix) Method that calculates determinant of given matrix. From: https://gist.githubusercontent.com/Cellane/398372/raw/23a3e321daa52d4c6b68795aae093bf773ce2940/MatrixOperations.java- Parameters:
matrix
- double[][]; matrix of which we need to know the determinant- Returns:
- double; the determinant of given matrix
-
det
public static float det(float[][] matrix) Method that calculates determinant of given matrix. From: https://gist.githubusercontent.com/Cellane/398372/raw/23a3e321daa52d4c6b68795aae093bf773ce2940/MatrixOperations.java- Parameters:
matrix
- float[][]; matrix of which we need to know the determinant- Returns:
- float; the determinant of given matrix
-
main
Program entry point.- Parameters:
args
- String[]; the command line arguments (not used)
-