Class JSci.maths.IntegerSquareMatrix
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JSci.maths.IntegerSquareMatrix

java.lang.Object
   |
   +----JSci.maths.Matrix
           |
           +----JSci.maths.IntegerMatrix
                   |
                   +----JSci.maths.IntegerSquareMatrix

public class IntegerSquareMatrix
extends IntegerMatrix
The IntegerSquareMatrix class provides an object for encapsulating square matrices containing integers.

Constructor Index

 o IntegerSquareMatrix()
Constructs a matrix.
 o IntegerSquareMatrix(int)
Constructs an empty matrix.
 o IntegerSquareMatrix(int[][])
Constructs a matrix by wrapping an array.

Method Index

 o clone()
Creates a clone of this matrix.
 o determinant()
Returns the determinant.
 o isUnitary()
Returns true if this matrix is unitary.
 o trace()
Returns the trace.

Constructors

 o IntegerSquareMatrix
  protected IntegerSquareMatrix()
Constructs a matrix.
 o IntegerSquareMatrix
  public IntegerSquareMatrix(int size)
Constructs an empty matrix.
Parameters:
size - the number of rows/columns
 o IntegerSquareMatrix
  public IntegerSquareMatrix(int array[][])
Constructs a matrix by wrapping an array.
Parameters:
array - an assigned value
Throws: MatrixDimensionException
If the array is not square.

Methods

 o clone
  public Object clone()
Creates a clone of this matrix.
Returns:
a copy of this matrix.
Overrides:
clone in class IntegerMatrix
 o isUnitary
  public boolean isUnitary()
Returns true if this matrix is unitary.
 o determinant
  public int determinant()
Returns the determinant.
 o trace
  public int trace()
Returns the trace.

All Packages  Class Hierarchy  This Package  Previous  Next  Index