annas.math
Class Matrix
java.lang.Object
annas.math.Matrix
public class Matrix
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
useParallel
public boolean useParallel
MAXTHREADS
public int MAXTHREADS
Matrix
public Matrix(Matrix m)
Matrix
public Matrix(int size)
Matrix
public Matrix(int sizeX,
int sizeY)
Matrix
public Matrix(float[][] m)
SetMatrix
public void SetMatrix(float[][] m)
getMatrix
public float[][] getMatrix()
createIdentity
public static Matrix createIdentity(int i)
print
public void print()
printformatted
public void printformatted(java.lang.String Pattern)
MultiplyMatrix
public Matrix MultiplyMatrix(Matrix mb)
throws java.lang.Exception
- Throws:
java.lang.Exception
calculateRowColumnProduct
public float calculateRowColumnProduct(float[][] A,
int row,
float[][] B,
int col)
Transpose
public Matrix Transpose()
Inverse
public Matrix Inverse()
throws java.lang.Exception
- Throws:
java.lang.Exception
Adjoint
public Matrix Adjoint()
throws java.lang.Exception
- Throws:
java.lang.Exception
UpperTriangle
public float[][] UpperTriangle()
Determinant
public float Determinant()
addMatrix
public Matrix addMatrix(Matrix m)
throws java.lang.Exception
- Throws:
java.lang.Exception
subtractMatrix
public Matrix subtractMatrix(Matrix m)
throws java.lang.Exception
- Throws:
java.lang.Exception
divide
public Matrix divide(Matrix j)
eq
public boolean eq(Matrix B)
- Performs a deep equals
- Parameters:
B
-
- Returns:
eq
public boolean eq(Matrix B,
double tolerance)
- Performs a deep equals
- Parameters:
B
-
- Returns: