gistoolkit.projection.ellipsoid.transform
Class Matrix

java.lang.Object
  extended bygistoolkit.projection.ellipsoid.transform.Matrix

public class Matrix
extends java.lang.Object

Class to contain matrix manipulation logic


Constructor Summary
Matrix(int tRows, int tCols, double[][] T)
          Create a new matrix with the given number of rows and columns
 
Method Summary
 Matrix addMulRow(int r1, int r2, double scalar)
          Add a new row to the matrix
 Matrix gaussJord()
          Perform an elimination on the matrix to solve
 int getColNum()
          Return the number of columns in the matrix
 int getRowNum()
          Return the number of rows in the matrix
 double getValue(int inRow, int inColumn)
          Return the value at the given indexes
 Matrix mulRow(int r1, double scalar)
           
 Matrix swapRow(int r1, int r2)
          Swap two rows in the matrix
 java.lang.String toString()
          String representation of the matrix for debugging purposes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Matrix

public Matrix(int tRows,
              int tCols,
              double[][] T)
Create a new matrix with the given number of rows and columns

Method Detail

getRowNum

public int getRowNum()
Return the number of rows in the matrix


getColNum

public int getColNum()
Return the number of columns in the matrix


getValue

public double getValue(int inRow,
                       int inColumn)
Return the value at the given indexes


swapRow

public Matrix swapRow(int r1,
                      int r2)
Swap two rows in the matrix


mulRow

public Matrix mulRow(int r1,
                     double scalar)

addMulRow

public Matrix addMulRow(int r1,
                        int r2,
                        double scalar)
Add a new row to the matrix


gaussJord

public Matrix gaussJord()
Perform an elimination on the matrix to solve


toString

public java.lang.String toString()
String representation of the matrix for debugging purposes