Class Determinant

java.lang.Object
org.djunits.value.vdouble.matrix.Determinant

public final class Determinant extends Object
Compute the determinant of a matrix.
Author:
Peter Knoppers
  • Method Summary

    Modifier and Type
    Method
    Description
    static double
    det(double[][] matrix)
    Method that calculates determinant of given matrix.
    static float
    det(float[][] matrix)
    Method that calculates determinant of given matrix.
    static void
    main(String[] args)
    Program entry point.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public static void main(String[] args)
      Program entry point.
      Parameters:
      args - String[]; the command line arguments (not used)