Class GaussElimination<C extends edu.jas.structure.RingElem<C>>

  • Type Parameters:
    C - ring element type

    public class GaussElimination<C extends edu.jas.structure.RingElem<C>>
    extends java.lang.Object
    Algorithms related to Gaussian elimination. Conversion to commons-math classes and delegation to commons-math algorithms.
    Author:
    Heinz Kredel
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      C determinant​(edu.jas.vector.GenMatrix<C> a)
      Determinant of a matrix.
      edu.jas.vector.GenMatrix<C> inverse​(edu.jas.vector.GenMatrix<C> a)
      Inverse of a matrix.
      boolean isNullSpace​(edu.jas.vector.GenMatrix<C> a, edu.jas.vector.GenMatrix<C> n)
      Test if n is a null space for the linear system: a * n = 0.
      edu.jas.vector.GenVector<C> solve​(edu.jas.vector.GenMatrix<C> a, edu.jas.vector.GenVector<C> b)
      Solve a linear system: a x = b.
      C trace​(edu.jas.vector.GenMatrix<C> a)
      Trace of a matrix.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • determinant

        public C determinant​(edu.jas.vector.GenMatrix<C> a)
        Determinant of a matrix.
        Parameters:
        a - matrix
        Returns:
        determinant of a
      • inverse

        public edu.jas.vector.GenMatrix<Cinverse​(edu.jas.vector.GenMatrix<C> a)
        Inverse of a matrix.
        Parameters:
        a - matrix
        Returns:
        inverse matrix of a
      • isNullSpace

        public boolean isNullSpace​(edu.jas.vector.GenMatrix<C> a,
                                   edu.jas.vector.GenMatrix<C> n)
        Test if n is a null space for the linear system: a * n = 0.
        Parameters:
        a - matrix
        n - matrix
        Returns:
        true, if n is a nullspace of a, else false
      • solve

        public edu.jas.vector.GenVector<Csolve​(edu.jas.vector.GenMatrix<C> a,
                                                 edu.jas.vector.GenVector<C> b)
        Solve a linear system: a x = b.
        Parameters:
        a - matrix
        b - vector of right hand side
        Returns:
        a solution vector x
      • trace

        public C trace​(edu.jas.vector.GenMatrix<C> a)
        Trace of a matrix.
        Parameters:
        a - matrix
        Returns:
        trace of a