Class InvertibleMatrix


  • public class InvertibleMatrix
    extends LinearSystem
    From: Java Number Cruncher The Java Programmer's Guide to Numerical Computation by Ronald Mak A matrix that can be inverted. Also, compute its determinant, norm, and condition number.
    • Constructor Detail

      • InvertibleMatrix

        public InvertibleMatrix​(int n)
        Constructor.
        Parameters:
        n - the number of rows = the number of columns
      • InvertibleMatrix

        public InvertibleMatrix​(double[][] values)
        Constructor.
        Parameters:
        values - the array of values
    • Method Detail

      • determinant

        public double determinant()
                           throws MatrixException
        Compute the determinant.
        Returns:
        the determinant
        Throws:
        matrix.MatrixException - if an error occurred
        MatrixException
      • norm

        public double norm()
        Compute the Euclidean norm of this matrix.
        Returns:
        the norm
      • condition

        public double condition()
                         throws MatrixException
        Compute the condition number based on the Euclidean norm.
        Returns:
        the condition number
        Throws:
        MatrixException