| 
 | JMSLTM Numerical Library 4.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.imsl.math.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[] | 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[] 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 arguments
IllegalArgumentException - This exception is thrown when
				(1) the lengths of the rows of either of the input matrices
				are not uniform, or
				(2) the matrices are not the same size.public static void checkMatrix(double[][] a)
a - a double matrix
IllegalArgumentException - This exception is thrown when the lengths of the
				rows of the input matrix are not uniform.public static void checkSquareMatrix(double[][] a)
a - a double matrix
IllegalArgumentException - This exception is thrown when the matrix is not square.public 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 elements
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
IllegalArgumentException - This exception is thrown when
				(1) the lengths of the rows of the input matrix are not uniform, or
				(2) the number of columns in the input matrix is not equal to
				the number of elements in the input column vector.
public static double[][] multiply(double[][] a,
                                  double[][] b)
a - a double rectangular arrayb - a double rectangular array
double matrix product of a times b
IllegalArgumentException - This exception is thrown when
				(1) the lengths of the rows of either of the input matrices
				are not uniform, or
				(2) the number of columns in a is not equal to the
				number of rows in b.
public static double[] multiply(double[] x,
                                double[][] a)
x - a double row arraya - a double rectangular matrix
double matrix representing the product of the
				arguments, x*a.
IllegalArgumentException - This exception is thrown when
				(1) the lengths of the rows of the input matrix are
				not uniform, or
				(2) the number of elements in the input vector
				is not equal to the number of rows of the matrix.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 arguments
IllegalArgumentException - This exception is thrown when
				(1) the lengths of the rows of either of the input matrices
				are not uniform, or
				(2) the matrices are not the same size.public static double[][] transpose(double[][] a)
a - a double matrix
double matrix which is the transpose of the argument
IllegalArgumentException - This exception is thrown when the lengths of
				the rows of the input matrix are not uniform.| 
 | JMSLTM Numerical Library 4.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||