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

Class JSci.maths.DoubleSquareMatrix

java.lang.Object
   |
   +----JSci.maths.Matrix
           |
           +----JSci.maths.DoubleMatrix
                   |
                   +----JSci.maths.DoubleSquareMatrix

public class DoubleSquareMatrix
extends DoubleMatrix
The DoubleSquareMatrix class provides an object for encapsulating square matrices containing doubles.

Constructor Index

 o DoubleSquareMatrix()
Constructs a matrix.
 o DoubleSquareMatrix(double[][])
Constructs a matrix by wrapping an array.
 o DoubleSquareMatrix(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 DoubleSquareMatrix
  protected DoubleSquareMatrix()
Constructs a matrix.
 o DoubleSquareMatrix
  public DoubleSquareMatrix(int size)
Constructs an empty matrix.
Parameters:
size - the number of rows/columns
 o DoubleSquareMatrix
  public DoubleSquareMatrix(double 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 DoubleMatrix
 o isUnitary
  public boolean isUnitary()
Returns true if this matrix is unitary.
 o determinant
  public double determinant()
Returns the determinant.
 o trace
  public double trace()
Returns the trace.

All Packages  Class Hierarchy  This Package  Previous  Next  Index