public class MatrixUtil
extends java.lang.Object
| Constructor and Description |
|---|
MatrixUtil() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.commons.math3.complex.Complex[][] |
add(org.apache.commons.math3.complex.Complex[][] A,
org.apache.commons.math3.complex.Complex[][] B)
add the two matrix together
|
static Complex3x1[][] |
add(Complex3x1[][] A,
Complex3x1[][] B)
add the two matrix together
|
static Complex3x1[] |
add(Complex3x1[] A,
Complex3x1[] B)
add the two vector together
|
static Complex3x3[][] |
add(Complex3x3[][] A,
Complex3x3[][] B)
add the two matrix together
|
static java.lang.String |
complex2DAry2String(org.apache.commons.math3.complex.Complex[][] ary) |
static java.lang.String |
complex3x1Ary2String(Complex3x1[] ary) |
static java.lang.String |
complex3x32DAry2String(Complex3x3[][] ary) |
static org.apache.commons.math3.complex.Complex[] |
createComplex1DArray(int row)
create a Complex vector with all fields initialized to (0.0,0.0)
|
static org.apache.commons.math3.complex.Complex[][] |
createComplex2DArray(int row,
int col)
create a Complex matrix with all fields initialized to (0.0,0.0)
|
static Complex3x1[] |
createComplex3x1DArray(int row)
create a Complex3x1 vector with all fields initialized
|
static Complex3x3[][] |
createComplex3x32DArray(int row,
int col)
create a Complex3x3 block matrix with all fields initialized
|
static org.apache.commons.math3.complex.Complex[] |
mul(org.apache.commons.math3.complex.Complex[][] a,
org.apache.commons.math3.complex.Complex[] b)
complex matrix multiplication [A] x [b]
|
static org.apache.commons.math3.complex.Complex[][] |
multiply(org.apache.commons.math3.complex.Complex[][] matrix,
int[][] transMatrix)
multiply the matrix by a transformation matrix.
|
static Complex3x1[][] |
multiply(Complex3x1[][] matrix,
int[][] transMatrix)
multiply the matrix by a transformation matrix.
|
static Complex3x3[][] |
multiply(Complex3x3[][] matrix,
double[][] transMatrix)
multiply the matrix by a transformation matrix.
|
static Complex3x3[][] |
multiply(Complex3x3[][] matrix,
int[][] transMatrix)
multiply the matrix by a transformation matrix.
|
static double[] |
multiply(double[][] matrix,
double[] vector)
multiply the matrix by the vector.
|
static Complex3x1[] |
preMultiply(double[][] transMatrix,
Complex3x1[] vector)
pre-multiply the vector by a transformation matrix.
|
static Complex3x3[][] |
preMultiply(double[][] transMatrix,
Complex3x3[][] matrix)
pre-multiply the matrix by a transformation matrix.
|
static org.apache.commons.math3.complex.Complex[][] |
preMultiply(int[][] transMatrix,
org.apache.commons.math3.complex.Complex[][] matrix)
pre-multiply the matrix by a transformation matrix.
|
static Complex3x1[] |
preMultiply(int[][] transMatrix,
Complex3x1[] vector)
pre-multiply the vector by a transformation matrix.
|
static Complex3x1[][] |
preMultiply(int[][] transMatrix,
Complex3x1[][] matrix)
pre-multiply the matrix by a transformation matrix.
|
static Complex3x3[][] |
preMultiply(int[][] transMatrix,
Complex3x3[][] matrix)
pre-multiply the matrix by a transformation matrix.
|
static org.apache.commons.math3.complex.Complex[][] |
prePostMultiply(org.apache.commons.math3.complex.Complex[][] matrix,
int[][] transM)
transpose[M] x [A] x [M]
|
static Complex3x1[][] |
prePostMultiply(Complex3x1[][] matrix,
int[][] transM)
transpose[M] x [A] x [M]
|
static Complex3x1[] |
toComplex3x1Ary(org.apache.commons.math3.complex.Complex[] vector0,
org.apache.commons.math3.complex.Complex[] vector1,
org.apache.commons.math3.complex.Complex[] vector2)
Convert three vectors to a Complex3x1 vector
|
static org.apache.commons.math3.complex.Complex[][] |
toComplexAry(Complex3x1[] vector)
convert a Complex3x1 vector to a Complex[] vector
|
static org.apache.commons.math3.complex.Complex[][][] |
toComplexMatrix(Complex3x1[][] matrix)
Convert a Complex3x1 matrix to a Complex[3] matrix
|
static java.lang.String |
toString(org.apache.commons.math3.complex.Complex[][] m) |
static java.lang.String |
toString(int[][] m) |
static double[][] |
transpose(double[][] t)
transpose the matrix, result = [matrix]T
|
static int[][] |
transpose(int[][] t)
transpose the matrix, result = [matrix]T
|
public static org.apache.commons.math3.complex.Complex[] mul(org.apache.commons.math3.complex.Complex[][] a,
org.apache.commons.math3.complex.Complex[] b)
throws IpssNumericException
a - matrix Ab - vector bIpssNumericExceptionpublic static org.apache.commons.math3.complex.Complex[][] createComplex2DArray(int row,
int col)
row - row countcol - column coundpublic static Complex3x3[][] createComplex3x32DArray(int row, int col)
row - row countcol - column coundpublic static org.apache.commons.math3.complex.Complex[] createComplex1DArray(int row)
row - row countpublic static Complex3x1[] createComplex3x1DArray(int row)
row - row countpublic static double[] multiply(double[][] matrix,
double[] vector)
throws IpssNumericException
matrix - vector - IpssNumericExceptionpublic static Complex3x3[][] multiply(Complex3x3[][] matrix, int[][] transMatrix)
matrix - transMatrix - public static org.apache.commons.math3.complex.Complex[][] multiply(org.apache.commons.math3.complex.Complex[][] matrix,
int[][] transMatrix)
matrix - transMatrix - public static Complex3x1[][] multiply(Complex3x1[][] matrix, int[][] transMatrix)
matrix - transMatrix - public static Complex3x3[][] multiply(Complex3x3[][] matrix, double[][] transMatrix)
matrix - transMatrix - public static Complex3x3[][] preMultiply(double[][] transMatrix, Complex3x3[][] matrix)
transMatrix - matrix - public static Complex3x3[][] preMultiply(int[][] transMatrix, Complex3x3[][] matrix)
transMatrix - matrix - public static org.apache.commons.math3.complex.Complex[][] prePostMultiply(org.apache.commons.math3.complex.Complex[][] matrix,
int[][] transM)
matrix - matrix [A]transM - transformation matrixpublic static Complex3x1[][] prePostMultiply(Complex3x1[][] matrix, int[][] transM)
matrix - matrix [A]transM - transformation matrixpublic static org.apache.commons.math3.complex.Complex[][] preMultiply(int[][] transMatrix,
org.apache.commons.math3.complex.Complex[][] matrix)
transMatrix - matrix - public static Complex3x1[][] preMultiply(int[][] transMatrix, Complex3x1[][] matrix)
transMatrix - matrix - public static Complex3x1[] preMultiply(int[][] transMatrix, Complex3x1[] vector)
transMatrix - vector - public static Complex3x1[] preMultiply(double[][] transMatrix, Complex3x1[] vector)
transMatrix - vector - public static Complex3x3[][] add(Complex3x3[][] A, Complex3x3[][] B)
A - B - public static org.apache.commons.math3.complex.Complex[][] add(org.apache.commons.math3.complex.Complex[][] A,
org.apache.commons.math3.complex.Complex[][] B)
A - B - public static Complex3x1[][] add(Complex3x1[][] A, Complex3x1[][] B)
A - B - public static Complex3x1[] add(Complex3x1[] A, Complex3x1[] B)
A - B - public static int[][] transpose(int[][] t)
t - public static double[][] transpose(double[][] t)
t - public static Complex3x1[] toComplex3x1Ary(org.apache.commons.math3.complex.Complex[] vector0, org.apache.commons.math3.complex.Complex[] vector1, org.apache.commons.math3.complex.Complex[] vector2)
vector0 - vector1 - vector2 - public static org.apache.commons.math3.complex.Complex[][] toComplexAry(Complex3x1[] vector)
vector - the Complex3x1 vectorpublic static org.apache.commons.math3.complex.Complex[][][] toComplexMatrix(Complex3x1[][] matrix)
matrix - the Complex3x1 matrixpublic static java.lang.String complex3x32DAry2String(Complex3x3[][] ary)
public static java.lang.String complex3x1Ary2String(Complex3x1[] ary)
public static java.lang.String complex2DAry2String(org.apache.commons.math3.complex.Complex[][] ary)
public static java.lang.String toString(org.apache.commons.math3.complex.Complex[][] m)
public static java.lang.String toString(int[][] m)