|
JMSLTM Numerical Library 6.1 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.imsl.math.Matrix
public class Matrix
Matrix manipulation functions.
| Method Summary | |
|---|---|
static double[][] |
add(double[][] a,
double[][] b)
Add two rectangular arrays, a + b. |
static void |
checkMatrix(double[][] a)
Check that all of the rows in the matrix have the same length. |
static void |
checkSquareMatrix(double[][] a)
Check that the matrix is square. |
static double |
frobeniusNorm(double[][] a)
Return the Frobenius norm of a matrix. |
static double |
infinityNorm(double[][] a)
Return the infinity norm of a matrix. |
static double[][] |
inverseLowerTriangular(double[][] a)
Returns the inverse of the lower triangular matrix a. |
static double[][] |
inverseUpperTriangular(double[][] a)
Returns the inverse of the upper triangular matrix a. |
static double[] |
multiply(double[][] a,
double[] x)
Multiply the rectangular array a and the column array x. |
static double[][] |
multiply(double[][] a,
double[][] b)
Multiply two rectangular arrays, a * b. |
static double[][] |
multiply(double[][] a,
double[][] b,
int processors)
Multiply two rectangular arrays, a * b, using multiple processors. |
static double[] |
multiply(double[] x,
double[][] a)
Return the product of the row array x and the rectangular array a. |
static double |
oneNorm(double[][] a)
Return the matrix one norm. |
static double[][] |
subtract(double[][] a,
double[][] b)
Subtract two rectangular arrays, a - b. |
static double[][] |
transpose(double[][] a)
Return the transpose of a matrix. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static double[][] add(double[][] a,
double[][] b)
a - a double rectangular arrayb - a double rectangular array
double rectangular array representing the
matrix sum of the two argumentspublic static void checkMatrix(double[][] a)
a - a double matrixpublic static void checkSquareMatrix(double[][] a)
a - a double matrixpublic static double frobeniusNorm(double[][] a)
a - a double rectangular array
double scalar value equal to the
Frobenius norm of the matrix.public static double infinityNorm(double[][] a)
a - a double rectangular array
double scalar value equal to the maximum
of the row sums of the absolute values of the
array elementspublic static double[][] inverseLowerTriangular(double[][] a)
a - a double square lower triangular matrix
double matrix containing the inverse of apublic static double[][] inverseUpperTriangular(double[][] a)
a - a double square upper triangular matrix
double matrix containing the inverse of a
public static double[] multiply(double[][] a,
double[] x)
a - a double rectangular matrixx - a double column array
double vector representing the product of the
arguments, a*x
public static double[][] multiply(double[][] a,
double[][] b)
a - a double rectangular arrayb - a double rectangular array
double matrix product of a times b
public static double[][] multiply(double[][] a,
double[][] b,
int processors)
a * b, using multiple processors.
a - a double rectangular arrayb - a double rectangular arrayprocessors - An int which specifies the number of
processors to use. If processors is less than 1,
then processors = 1 is used.
double matrix product of a times b
public static double[] multiply(double[] x,
double[][] a)
x - a double row arraya - a double rectangular matrix
double vector representing the product of the
arguments, x*a.public static double oneNorm(double[][] a)
a - a double rectangular array
double value equal to the maximum of the column
sums of the absolute values of the array elements
public static double[][] subtract(double[][] a,
double[][] b)
a - a double rectangular arrayb - a double rectangular array
double rectangular array representing the matrix
difference of the two argumentspublic static double[][] transpose(double[][] a)
a - a double matrix
double matrix which is the transpose of the argument
|
JMSLTM Numerical Library 6.1 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||