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

Class JSci.maths.ComplexSquareMatrix

java.lang.Object
   |
   +----JSci.maths.Matrix
           |
           +----JSci.maths.ComplexMatrix
                   |
                   +----JSci.maths.ComplexSquareMatrix

public class ComplexSquareMatrix
extends ComplexMatrix
The ComplexSquareMatrix class provides an object for encapsulating square matrices containing complex numbers.

Constructor Index

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

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 ComplexSquareMatrix
  protected ComplexSquareMatrix()
Constructs a matrix.
 o ComplexSquareMatrix
  public ComplexSquareMatrix(int size)
Constructs an empty matrix.
Parameters:
size - the number of rows/columns
 o ComplexSquareMatrix
  public ComplexSquareMatrix(Complex 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 ComplexMatrix
 o isUnitary
  public boolean isUnitary()
Returns true if this matrix is unitary.
 o determinant
  public Complex determinant()
Returns the determinant.
 o trace
  public Complex trace()
Returns the trace.

All Packages  Class Hierarchy  This Package  Previous  Next  Index