| java.lang.Object org.geotools.referencing.operation.matrix.MatrixFactory
MatrixFactory | final public class MatrixFactory (Code) | | Static utility methods for creating matrix. This factory selects one of the
Matrix1 ,
Matrix2 ,
Matrix3 ,
Matrix4 or
GeneralMatrix implementation
according the desired matrix size. Note that if the matrix size is know at compile time,
it may be more efficient to invoke directly the constructor of the appropriate class instead.
since: 2.2 version: $Id: MatrixFactory.java 22710 2006-11-12 18:04:54Z desruisseaux $ author: Martin Desruisseaux |
Method Summary | |
public static XMatrix | create(int size) Creates a square identity matrix of size
size ×
size . | public static XMatrix | create(int numRow, int numCol) Creates a matrix of size
numRow ×
numCol . | public static XMatrix | create(Matrix matrix) Creates a new matrix which is a copy of the specified matrix. |
create | public static XMatrix create(int size)(Code) | | Creates a square identity matrix of size
size ×
size .
|
create | public static XMatrix create(int numRow, int numCol)(Code) | | Creates a matrix of size
numRow ×
numCol .
Elements on the diagonal j==i are set to 1.
|
create | public static XMatrix create(Matrix matrix)(Code) | | Creates a new matrix which is a copy of the specified matrix.
|
|
|