Class Matrix


  • public class Matrix
    extends java.lang.Object
    Matrix and operations on matrices.
    Version:
    4.8
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) double[][] A  
    • Constructor Summary

      Constructors 
      Constructor Description
      Matrix​(double[][] M)  
    • Field Detail

      • A

        double[][] A
    • Constructor Detail

      • Matrix

        public Matrix​(double[][] M)
    • Method Detail

      • determinant

        public double determinant()
      • determinant

        public double determinant​(double[][] M)
      • cofactor

        public double[][] cofactor​(double[][] m)
      • transpose

        public double[][] transpose​(double[][] m)
      • inverse

        public double[][] inverse()
      • inverse

        public double[][] inverse​(double[][] m)
      • mult

        public double[][] mult​(double[][] b)
      • mult

        public double[] mult​(double[] b)
      • multiplyByConstant

        double[][] multiplyByConstant​(double[][] m,
                                      double c)
      • subMatrix

        double[][] subMatrix​(double[][] s,
                             int r,
                             int c)
      • sign

        double sign​(int n)
      • isSquare

        boolean isSquare​(double[][] M)
      • print

        void print​(double[][] M)