ch.javasoft.smx.iface
Interface RationalMatrix

All Known Subinterfaces:
BigIntegerRationalMatrix, IntRationalMatrix, LongRationalMatrix
All Known Implementing Classes:
DefaultBigIntegerRationalMatrix, DefaultBigIntegerVector, DefaultIntRationalMatrix

public interface RationalMatrix


Method Summary
 boolean reduce()
          Reduce the whole matrix, that is, divide numerators/denominators by their greatest common divisor
 boolean reduceRow(int row)
          Reduce the specified row, that is, divide numerators/denominators by their greatest common divisor
 boolean reduceValueAt(int row, int col)
          Reduce the specified value, that is, divide numerator/denominator by their greatest common divisor
 

Method Detail

reduce

boolean reduce()
Reduce the whole matrix, that is, divide numerators/denominators by their greatest common divisor

Returns:
true if any value has been changed in the matrix

reduceRow

boolean reduceRow(int row)
Reduce the specified row, that is, divide numerators/denominators by their greatest common divisor

Returns:
true if any value has been changed in the given row

reduceValueAt

boolean reduceValueAt(int row,
                      int col)
Reduce the specified value, that is, divide numerator/denominator by their greatest common divisor

Returns:
true if the value has been changed