Package SaZhaK

Class Matrix

java.lang.Object
SaZhaK.AbstractMatrix
SaZhaK.Matrix

public class Matrix
extends AbstractMatrix
  • Constructor Details

    • Matrix

      public Matrix​(int rows, int columns, java.lang.Double[] elements)
  • Method Details

    • equals

      public boolean equals​(java.lang.Object object)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • getIdentityMatrix

      public static Matrix getIdentityMatrix​(int size)
    • transpose

      public void transpose() throws java.lang.RuntimeException
      Overrides:
      transpose in class AbstractMatrix
      Throws:
      java.lang.RuntimeException
    • getTrace

      public double getTrace() throws java.lang.RuntimeException
      Throws:
      java.lang.RuntimeException
    • add

      public Matrix add​(Matrix matrix) throws java.lang.RuntimeException
      Specified by:
      add in class AbstractMatrix
      Throws:
      java.lang.RuntimeException
    • subtract

      public Matrix subtract​(Matrix matrix) throws java.lang.RuntimeException
      Specified by:
      subtract in class AbstractMatrix
      Throws:
      java.lang.RuntimeException
    • multiply

      public Matrix multiply​(double constant)
    • multiply

      public Matrix multiply​(Matrix matrix) throws java.lang.RuntimeException
      Specified by:
      multiply in class AbstractMatrix
      Throws:
      java.lang.RuntimeException
    • getDeterminant

      public double getDeterminant() throws java.lang.RuntimeException
      Throws:
      java.lang.RuntimeException
    • getMinorMatrix

      public Matrix getMinorMatrix() throws java.lang.RuntimeException
      Throws:
      java.lang.RuntimeException
    • getAlgebraicAdditionsMatrix

      public Matrix getAlgebraicAdditionsMatrix() throws java.lang.RuntimeException
      Throws:
      java.lang.RuntimeException
    • getInverseMatrix

      public Matrix getInverseMatrix()