org.geotools.referencing.operation.matrix
Class MatrixFactory

java.lang.Object
  extended byorg.geotools.referencing.operation.matrix.MatrixFactory

public final class MatrixFactory
extends java.lang.Object

Static utility methods for creating matrix. This factory selected one of the Matrix1, Matrix2, Matrix3, Matrix4 or GeneralMatrix implementation according the desired matrix size. If the matrix size is know at compile time, invoke directly the constructor of the appropriate class instead.

Since:
2.2
Version:
$Id: MatrixFactory.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Martin Desruisseaux

Method Summary
static XMatrix create(int size)
          Creates a square identity matrix of size  × .
static XMatrix create(int numRow, int numCol)
          Creates a matrix of size  × .
static XMatrix create(org.opengis.referencing.operation.Matrix matrix)
          Creates a new matrix which is a copy of the specified matrix.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static XMatrix create(int size)
Creates a square identity matrix of size  × .


create

public static XMatrix create(int numRow,
                             int numCol)
Creates a matrix of size  × . Elements on the diagonal j==i are set to 1.


create

public static XMatrix create(org.opengis.referencing.operation.Matrix matrix)
Creates a new matrix which is a copy of the specified matrix.



Copyright © GeoTools. All Rights Reserved.