|
|
com.kutsyy.util
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Constructor Summary | |
La()
|
|
| Method Summary | |
static double[] |
changeI(double[] a,
int i,
double x)
Returns vector b[]=a[], except for x[i]=x |
static int[] |
changeI(int[] a,
int i,
int x)
Returns vector b[]=a[], except for x[i]=x |
static double[][] |
choldc(double[][] A)
Cholestky decomposition. |
private static void |
choldc(double[][] a,
double[] p)
main method for Cholestky decomposition. |
static double[][] |
choldcsl(double[][] A)
Inverse of Cholestky decomposition. |
static double |
choldet(double[][] a)
Computation of Determinant of the matrix using Cholevsky decomposition |
static double |
choldet(double[][] a,
double[][] c)
Computation of Determinant of the matrix using Cholevsky decomposition, and Cholevsky decomposition |
static double[][] |
cholsl(double[][] A)
Matrix inverse using Cholevsky decomposition |
static double[] |
cholsl(double[][] A,
double[] b)
Solves Ax=b, using Cholesky decomposition |
private static double[] |
cholsl(double[][] a,
double[] p,
double[] b)
Internal method for Cholestky decomposition. |
static double[][] |
getArray(double[][] A,
int iFirst,
int iLast)
Get a subarray. |
static double[][] |
getArray(double[][] A,
int iFirst,
int iLast,
int jFirst,
int jLast)
Get a subarray. |
static double[] |
getArray(double[] A,
int[] index)
Get sub array |
static double[] |
getArray(double[] A,
int iFirst,
int iLast)
Get a subarray. |
static double[] |
insertI(double[] a,
int i,
double x)
Insert element x at the position i; |
static int[] |
insertI(int[] a,
int i,
int x)
Insert element x at the position i; |
static double |
max(double[] a)
Find maximum value of the vector |
static double |
min(double[] a)
Find minimum value of the vector |
static double[][] |
minus(double[][] a,
double[][] b)
Return x[i][j]=a[i][j]-b[i][j] for i,j=0..(n-1) |
static double[] |
minus(double[] a,
double[] b)
Return x[i]=a[i]-b[i] for i=0..(n-1) |
static void |
mult(double[][] A,
double[][] B,
double[][] C,
double alpha,
double beta)
Linear algebraic matrix-matrix multiplication; C = alpha * A x B + beta*C . |
static double[][] |
negativeI(double[][] a,
int i)
Returns x=a, exceept for x[i][j]=-a[i][j], i!=j; |
static double[] |
negativeI(double[] a,
int i)
Returns x=a, except for x[i]=-a[i]; |
static double[][] |
plus(double[][] a,
double[][] b)
Return x[i][j]=a[i][j]+b[i][j] for i,j=1..(n-1) |
static double[] |
plus(double[] a,
double b)
Return x[i]=a[i]+b for i=1..(n-1) |
static double[] |
plus(double[] a,
double[] b)
Return x[i]=a[i]+b[i] for i=1..(n-1) |
static double[][] |
removeI(double[][] a,
int i)
Returns x, such that x[j][k]=a[j][k], j,k=i if j,k less then i, ir i+1 |
static double[] |
removeI(double[] a,
int i)
Returns x such that x[j]=a[j], j |
static int[] |
removeI(int[] a,
int i)
return x, such that x[j]=a[j], j |
static double[][] |
solve(double[][] A)
return inverse of the matrix. |
static double[] |
solve(double[][] A,
double[] b)
Solves Ax=b for general A, using JAMA package ; |
static double[] |
solveLS(double[][] x,
double[] y)
Finds Least square solution of y=b*x |
static double[] |
sub(double[] x,
int end)
Get subarray |
static double[] |
sub(double[] x,
int start,
int end)
Get subarray |
static double |
sum(double[] x)
Returns sum of array |
static double[][] |
t(double[][] A)
Return transpose of the matrix |
static int[][] |
t(int[][] A)
Return transpose of the matrix |
static double |
times(double[] A)
Return A'A, where A is n dimentional vector; |
static double[][] |
times(double[][] A)
Linear algebraic matrix multiplication, C = A * A |
static double[][] |
times(double[][] a,
double b)
Linear algebraic matrix multiplication, C = A * b |
static double[] |
times(double[][] A,
double[] B)
Linear algebraic matrix multiplication, C = A * b |
static double[][] |
times(double[][] A,
double[][] B)
Linear algebraic matrix multiplication, C = A * B |
static double[] |
times(double[] A,
double b)
Linear algebraic matrix multiplication, C = A * b |
static double |
times(double[] A,
double[] B)
Linear algebraic matrix multiplication, C = A * B |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public La()
| Method Detail |
public static double[][] getArray(double[][] A,
int iFirst,
int iLast,
int jFirst,
int jLast)
A - arrayiFirst - start of fist dimention ofsubarrayiLast - end of fist dimention ofsubarrayjFirst - start of second dimention ofsubarrayjLast - end of second dimention ofsubarray
public static double[][] getArray(double[][] A,
int iFirst,
int iLast)
A - arrayiFirst - start of subarrayiLast - end of subarray
public static double[] getArray(double[] A,
int iFirst,
int iLast)
A - arrayiFirst - start of subarrayiLast - end of subarray
public static double[] getArray(double[] A,
int[] index)
A - arrayindex - index of fields for subarray
public static double[] changeI(double[] a,
int i,
double x)
a - input vectori - position of the changex - new value for replasment
public static int[] changeI(int[] a,
int i,
int x)
a - input vectori - position of the changex - new value for replasmentpublic static double[][] choldc(double[][] A)
A - Symetric Positive def matrixcholdc(double[][], double[])public static double[][] choldcsl(double[][] A)
A - Symetric Positive def matrixcholdc(double[][], double[])public static double choldet(double[][] a)
a - Acholdc(double[][], double[])
public static double choldet(double[][] a,
double[][] c)
a - Ac - Cholevsky decomposition of Acholdc(double[][], double[])public static double[][] cholsl(double[][] A)
A - Symetric Positive def matrixcholdc(double[][], double[])
public static double[] cholsl(double[][] A,
double[] b)
A - Ab - bcholdc(double[][], double[])
public static double[] insertI(double[] a,
int i,
double x)
a - input vector [n]i - positionx - value of inserted element
public static int[] insertI(int[] a,
int i,
int x)
a - input vector [n]i - positionx - value of inserted elementpublic static double max(double[] a)
a - apublic static double min(double[] a)
a - a
public static double[][] minus(double[][] a,
double[][] b)
a - ab - b
public static double[] minus(double[] a,
double[] b)
a - ab - b
public static final double[][] negativeI(double[][] a,
int i)
a - ai - index
public static double[] negativeI(double[] a,
int i)
a - ai - index
public static double[][] plus(double[][] a,
double[][] b)
a - ab - b
public static double[] plus(double[] a,
double[] b)
a - ab - b
public static double[] plus(double[] a,
double b)
a - ab - b
public static double[][] removeI(double[][] a,
int i)
a - ai - index
public static double[] removeI(double[] a,
int i)
a - ai - index
public static int[] removeI(int[] a,
int i)
a - ai - indexpublic static double[][] solve(double[][] A)
A - Matrix
public static double[] solve(double[][] A,
double[] b)
A - Ab - b
public static double[] solveLS(double[][] x,
double[] y)
x - xy - y
public static double[] sub(double[] x,
int end)
x - arrayend - end of subarray
public static double[] sub(double[] x,
int start,
int end)
x - arraystart - start of subarrayend - end of subarraypublic static double[][] t(double[][] A)
A - Apublic static int[][] t(int[][] A)
A - Apublic static double[][] times(double[][] A)
A - matrix
public static double[][] times(double[][] A,
double[][] B)
A - Description of ParameterB - Description of Parameter
public static double[] times(double[][] A,
double[] B)
A - Description of ParameterB - Description of Parameter
public static double[][] times(double[][] a,
double b)
a - Ab - bpublic static double times(double[] A)
A - n dimentional vector;
public static double times(double[] A,
double[] B)
A - matrixB - matrix
public static double[] times(double[] A,
double b)
A - matrixb - parameter
public static final void mult(double[][] A,
double[][] B,
double[][] C,
double alpha,
double beta)
A - first source matrix.B - the second source matrix.C - the matrix where results are to be
stored. Set this parameter to null to indicate that a new
result matrix shall be constructed.alpha - doublebeta - doubleIllegalArgumentException - if B.length != A[0].length .IllegalArgumentException - if C.length != A.length ||
C[0].length != B[0].length .IllegalArgumentException - if A == C || B == C .public static double sum(double[] x)
x - array
private static void choldc(double[][] a,
double[] p)
a - matrixp - vector of resulting diag of a
private static double[] cholsl(double[][] a,
double[] p,
double[] b)
b - double[]a - double[]p - double[]
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||