Class RealDenseDeterminant

java.lang.Object
org.flag4j.linalg.ops.dense.real.RealDenseDeterminant

public final class RealDenseDeterminant extends Object
This class contains methods for computing the determinant of a real dense matrix.
  • Method Summary

    Modifier and Type
    Method
    Description
    static double
    Computes the determinant of a square matrix using the LU factorization.
    static double
    Explicitly computes the determinant of a 1x1 matrix.
    static double
    Explicitly computes the determinant of a 2x2 matrix.
    static double
    Explicitly computes the determinant of a 3x3 matrix.
    static double
    Computes the determinant of a square matrix using the LU factorization.
    static double
    Computes the determinant for a triangular matrix.

    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(Matrix A)
      Computes the determinant of a square matrix using the LU factorization.
      Parameters:
      A - Matrix to compute the determinant of.
      Returns:
      The determinant of the matrix.
      Throws:
      IllegalArgumentException - If matrix is not square.
    • detLU

      public static double detLU(Matrix A)
      Computes the determinant of a square matrix using the LU factorization.
      Parameters:
      A - Matrix to compute the determinant of.
      Returns:
      The determinant of the matrix.
      Throws:
      IllegalArgumentException - If matrix is not square.
    • det3

      public static double det3(Matrix A)
      Explicitly computes the determinant of a 3x3 matrix.
      Parameters:
      A - Matrix to compute the determinant of.
      Returns:
      The determinant of the 3x3 matrix.
    • det2

      public static double det2(Matrix A)
      Explicitly computes the determinant of a 2x2 matrix.
      Parameters:
      A - Matrix to compute the determinant of.
      Returns:
      The determinant of the 2x2 matrix.
    • det1

      public static double det1(Matrix A)
      Explicitly computes the determinant of a 1x1 matrix.
      Parameters:
      A - Matrix to compute the determinant of.
      Returns:
      The determinant of the 1x1 matrix.
    • detTri

      public static double detTri(Matrix A)
      Computes the determinant for a triangular matrix. This method does not check that the matrix is actually triangular.
      Parameters:
      A - Triangular matrix.
      Returns:
      The determinant of the triangular matrix.