Modifier and Type | Method and Description |
---|---|
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 numberOfThreads)
Multiply two rectangular arrays,
a * b , using
multiple java.lang.Thread s. |
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.
|
public static double[][] add(double[][] a, double[][] b)
a
- a double
rectangular arrayb
- a double
rectangular arraydouble
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 arraydouble
scalar value equal to the
Frobenius norm of the matrix.public static double infinityNorm(double[][] a)
a
- a double
rectangular arraydouble
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 matrixdouble
matrix containing the inverse of a
public static double[][] inverseUpperTriangular(double[][] a)
a
- a double
square upper triangular matrixdouble
matrix containing the inverse of a
public static double[] multiply(double[][] a, double[] x)
a
- a double
rectangular matrixx
- a double
column arraydouble
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 arraydouble
matrix product of a
times b
public static double[][] multiply(double[][] a, double[][] b, int numberOfThreads)
a
* b
, using
multiple java.lang.Thread
s.a
- a double
rectangular arrayb
- a double
rectangular arraynumberOfThreads
- An int
which specifies the number of
java.lang.Thread
instances to use. If
numberOfThreads
is less than 1, then
numberOfThreads
= 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 matrixdouble
vector representing the product of the
arguments, x
*a
.public static double oneNorm(double[][] a)
a
- a double
rectangular arraydouble
value equal to the maximum of the column
sums of the absolute values of the array elementspublic static double[][] subtract(double[][] a, double[][] b)
a
- a double
rectangular arrayb
- a double
rectangular arraydouble
rectangular array representing the matrix
difference of the two argumentspublic static double[][] transpose(double[][] a)
a
- a double
matrixdouble
matrix which is the transpose of the argumentCopyright © 1970-2015 Rogue Wave Software
Built October 13 2015.