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