All Packages Class Hierarchy This Package Previous Next Index
Class mathUtil.Matrix
java.lang.Object
|
+----mathUtil.Matrix
- public class Matrix
- extends Object
Has all the Matrix utilities built it.
-
data
-
-
dimension
-
-
Matrix(int, double[][])
- The constructor takes an input parameter
and the array to instantiate the matrix
-
invertMatrix()
- Return the inverse of the matrix.
-
invertMatrixLowerTriangular()
- Assume that this matrix is lower triangular and
invert it.
-
multiplyLeft(Matrix)
- Multiply this matrix on the left with another matrix
-
multiplyRight(Matrix)
- Multiply this matrix on the right with another matrix
-
multiplyVector(double[])
- Multiple this matrix with a vector on the right.
-
print()
- Print the matrix in row major order.
dimension
public int dimension
data
public double data[][]
Matrix
public Matrix(int n,
double input[][])
- The constructor takes an input parameter
and the array to instantiate the matrix
print
public void print()
- Print the matrix in row major order.
multiplyVector
public double[] multiplyVector(double values[])
- Multiple this matrix with a vector on the right.
multiplyRight
public Matrix multiplyRight(Matrix second)
- Multiply this matrix on the right with another matrix
multiplyLeft
public Matrix multiplyLeft(Matrix second)
- Multiply this matrix on the left with another matrix
invertMatrixLowerTriangular
public Matrix invertMatrixLowerTriangular()
- Assume that this matrix is lower triangular and
invert it. The algorithm is recursive.
invertMatrix
public Matrix invertMatrix()
- Return the inverse of the matrix. Return null
if the matrix is singular.
All Packages Class Hierarchy This Package Previous Next Index