Package org.opengis.example.referencing
Class SimpleMatrix
-
- All Implemented Interfaces:
Serializable,Cloneable,Matrix
public class SimpleMatrix extends GMatrix implements Matrix
AMatrixbuilt on top of Java3Dvecmathlibrary.- Since:
- 3.1
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimpleMatrix(int numRow, int numCol)Creates a matrix of sizenumRow×numCol.SimpleMatrix(Matrix matrix)Creates a new matrix initialized to the same content than the given matrix.
-
Method Summary
Modifier and Type Method Description SimpleMatrixclone()Returns a clone of this matrix.booleanisIdentity()Returnstrueif this matrix is an identity matrix.-
Methods inherited from class GMatrix
add, add, copySubMatrix, epsilonEquals, epsilonEquals, equals, equals, get, get, get, get, get, getColumn, getColumn, getElement, getNumCol, getNumRow, getRow, getRow, hashCode, identityMinus, invert, invert, LUD, mul, mul, mul, mulTransposeBoth, mulTransposeLeft, mulTransposeRight, negate, negate, set, set, set, set, set, set, setColumn, setColumn, setElement, setIdentity, setRow, setRow, setScale, setSize, setZero, sub, sub, SVD, toString, trace, transpose, transpose
-
Methods inherited from interface Matrix
getElement, getNumCol, getNumRow, setElement
-
-
-
-
Constructor Detail
-
SimpleMatrix
public SimpleMatrix(int numRow, int numCol)Creates a matrix of sizenumRow×numCol. Elements on the diagonal (j == i) are set to 1.- Parameters:
numRow- number of rows.numCol- number of columns.
-
SimpleMatrix
public SimpleMatrix(Matrix matrix)
Creates a new matrix initialized to the same content than the given matrix.- Parameters:
matrix- the matrix to copy.
-
-
Method Detail
-
isIdentity
public boolean isIdentity()
Returnstrueif this matrix is an identity matrix.- Specified by:
isIdentityin interfaceMatrix
-
clone
public SimpleMatrix clone()
Returns a clone of this matrix.
-
-