Class matrixUtil
Class matrixUtil
Object
|
+----matrixUtil
- public class matrixUtil
- extends Object
matrixUtil is a class that contains methods which can be used to perform
calculations involving matrices.
- Version:
- 1.1, 02/27/98
- Author:
- Dr. David Lane, Al Shea
-
matrixUtil()
- Class constructor.
-
MMult(double[][], double[][], int, int, int)
-
-
OneTwo(double[], int)
-
-
chol(double[], double[], int)
- Given a symmetric matrix order n as lower triangle in a[], it calculates an
uppper trangle, u[], such that uprime * u = a.
-
syminv(double[], double[], int)
- Forms in u[] as lower triangle, a generalized inverse of the positive semi-definite
symmetric matrix a[] of order n, which is stored as lower triangle
matrixUtil
public matrixUtil()
- Class constructor.
MMult
public static double[][][][] MMult(double[][] X,
double[][] Y,
int L,
int M,
int N)
OneTwo
public static double[][][][] OneTwo(double[] X,
int n)
chol
public static int chol(double[] a,
double[] u,
int n)
- Given a symmetric matrix order n as lower triangle in a[], it calculates an
uppper trangle, u[], such that uprime * u = a.
- Parameters:
- a - an array with (n*(n+1)/2+1) elements, which represent the elements of
lower triangle of the symmetric matrix
- u - the resultant upper triangle, such that uprime * u = a
- n - order of symmetric matrix a
- Returns:
- returns ifault=0, if no error
syminv
public static int syminv(double[] a,
double[] u,
int n)
- Forms in u[] as lower triangle, a generalized inverse of the positive semi-definite
symmetric matrix a[] of order n, which is stored as lower triangle
- Parameters:
- a - an array with (n*(n+1)/2+1) elements, which represent the elements of
lower triangle of the symmetric matrix
- u - the resultant upper triangle, such that uprime * u = a
- n - order of symmetric matrix a
- Returns:
- returns ier=0, if no error