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.
-
ComplexSquareMatrix()
- Constructs a matrix.
-
ComplexSquareMatrix(Complex[][])
- Constructs a matrix by wrapping an array.
-
ComplexSquareMatrix(int)
- Constructs an empty matrix.
-
clone()
- Creates a clone of this matrix.
-
determinant()
- Returns the determinant.
-
isUnitary()
- Returns true if this matrix is unitary.
-
trace()
- Returns the trace.
ComplexSquareMatrix
protected ComplexSquareMatrix()
- Constructs a matrix.
ComplexSquareMatrix
public ComplexSquareMatrix(int size)
- Constructs an empty matrix.
- Parameters:
- size - the number of rows/columns
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.
clone
public Object clone()
- Creates a clone of this matrix.
- Returns:
- a copy of this matrix.
- Overrides:
- clone in class ComplexMatrix
isUnitary
public boolean isUnitary()
- Returns true if this matrix is unitary.
determinant
public Complex determinant()
- Returns the determinant.
trace
public Complex trace()
- Returns the trace.
All Packages Class Hierarchy This Package Previous Next Index