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