ch.javasoft.smx.ops.matrix
Class ExtendedIntDoubleOperations

java.lang.Object
  extended by ch.javasoft.smx.ops.matrix.ExtendedIntDoubleOperations
All Implemented Interfaces:
ExtendedMatrixOperations<Integer,Double>

public class ExtendedIntDoubleOperations
extends Object
implements ExtendedMatrixOperations<Integer,Double>


Constructor Summary
ExtendedIntDoubleOperations(double tolerance)
           
ExtendedIntDoubleOperations(Zero zero)
           
 
Method Summary
 Gauss getGauss()
           
 Zero getZero()
           
 ReadableMatrix<Double> invert(ReadableMatrix<Integer> mx)
          Returns the matrix inverse of a square matrix mx, that is, a matrix res = null(mx), such that
 int nullity(ReadableMatrix<Integer> mx)
          Returns the nullity of the given matrix, that is, the dimension of the nullspace of mx.
 ReadableMatrix<Double> nullspace(ReadableMatrix<Integer> mx)
          Returns a basis for the kernel (or nullspace) of mx, that is, a matrix res, such that it spans the nullspace:
 int rank(ReadableMatrix<Integer> mx)
          Returns the rank of the given matrix.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtendedIntDoubleOperations

public ExtendedIntDoubleOperations(Zero zero)

ExtendedIntDoubleOperations

public ExtendedIntDoubleOperations(double tolerance)
Method Detail

getZero

public Zero getZero()

getGauss

public Gauss getGauss()

rank

public int rank(ReadableMatrix<Integer> mx)
Description copied from interface: ExtendedMatrixOperations
Returns the rank of the given matrix.

Usually, Gaussian elimination is used to compute the rank

Specified by:
rank in interface ExtendedMatrixOperations<Integer,Double>

nullity

public int nullity(ReadableMatrix<Integer> mx)
Description copied from interface: ExtendedMatrixOperations
Returns the nullity of the given matrix, that is, the dimension of the nullspace of mx. Note that by the rank-nullity theorem,
   rank(mx) + nullity(mx) = n
 
where n is the number of columns of mx.

Usually, Gaussian elimination is used to compute the nullity.

Specified by:
nullity in interface ExtendedMatrixOperations<Integer,Double>

invert

public ReadableMatrix<Double> invert(ReadableMatrix<Integer> mx)
Description copied from interface: ExtendedMatrixOperations
Returns the matrix inverse of a square matrix mx, that is, a matrix res = null(mx), such that
   mx * res = I
 
where I is the identity matrix.

Usually, Gaussian elimination is used to compute the inverse matrix.

Specified by:
invert in interface ExtendedMatrixOperations<Integer,Double>

nullspace

public ReadableMatrix<Double> nullspace(ReadableMatrix<Integer> mx)
Description copied from interface: ExtendedMatrixOperations
Returns a basis for the kernel (or nullspace) of mx, that is, a matrix res, such that it spans the nullspace:
   span(res) = null(mx) = { x : mx * x = 0}
 

Usually, Gaussian elimination is used to compute the kernel matrix.

Specified by:
nullspace in interface ExtendedMatrixOperations<Integer,Double>