Documentation of 'org.spaceroots.mantissa.linalg.SquareMatrix' Java class
SquareMatrix
org.spaceroots.mantissa.linalg

Class SquareMatrix

    • Method Detail

      • getDeterminant

        public abstract double getDeterminant(double epsilon)
        Get the determinant of the matrix.
        Parameters:
        epsilon - threshold on matrix elements below which the matrix is considered singular (this is used by the derived classes that use a factorization to compute the determinant)
        Returns:
        the determinant of the matrix
      • getInverse

        public SquareMatrix getInverse(double epsilon)
                                throws SingularMatrixException
        Invert the instance.
        Parameters:
        epsilon - threshold on matrix elements below which the matrix is considered singular
        Returns:
        the inverse matrix of the instance
        Throws:
        SingularMatrixException - if the matrix is singular
      • solve

        public abstract Matrix solve(Matrix b,
                                     double epsilon)
                              throws SingularMatrixException
        Solve the A.X = B equation.
        Parameters:
        b - second term of the equation
        epsilon - threshold on matrix elements below which the matrix is considered singular
        Returns:
        a matrix X such that A.X = B, where A is the instance
        Throws:
        SingularMatrixException - if the matrix is singular
      • solve

        public SquareMatrix solve(SquareMatrix b,
                                  double epsilon)
                           throws SingularMatrixException
        Solve the A.X = B equation.
        Parameters:
        b - second term of the equation
        epsilon - threshold on matrix elements below which the matrix is considered singular
        Returns:
        a matrix X such that A.X = B, where A is the instance
        Throws:
        SingularMatrixException - if the matrix is singular

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.