Package edu.jas.commons.math
Class GaussElimination<C extends edu.jas.structure.RingElem<C>>
- java.lang.Object
-
- edu.jas.commons.math.GaussElimination<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
-
-
Constructor Summary
Constructors Constructor Description GaussElimination()
-
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.
-
-
-
Constructor Detail
-
GaussElimination
public GaussElimination()
-
-
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<C> inverse(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
- matrixn
- matrix- Returns:
- true, if n is a nullspace of a, else false
-
solve
public 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.- Parameters:
a
- matrixb
- vector of right hand side- Returns:
- a solution vector x
-
-