| Modifier and Type | Class and Description |
|---|---|
static class |
Matrix.MatrixType
Indicates which matrix type is used.
|
| 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 |
CheckMatrix(double[][] a)
Deprecated.
Use
Matrix.checkMatrix(double[][]) instead. |
static void |
checkSquareMatrix(double[][] a)
Check that the matrix is square.
|
static void |
CheckSquareMatrix(double[][] a)
Deprecated.
Use
Matrix.checkSquareMatrix(double[][]) instead. |
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 boolean |
isSymmetric(double[][] a)
Check if the matrix is symmetric.
|
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.Threads. |
static double[] |
multiply(double[][] a,
Matrix.MatrixType aType,
double[] x)
Multiply the rectangular array a and the column array x.
|
static double[][] |
multiply(double[][] a,
Matrix.MatrixType aType,
double[][] b,
Matrix.MatrixType bType,
int numberOfThreads)
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[] |
multiply(double[] x,
double[][] a,
Matrix.MatrixType aType)
Return the product of the row array x and the rectangular array a.
|
static double |
multiply(double[] x,
double[][] a,
Matrix.MatrixType aType,
double[] y,
boolean equalVectors)
Compute vector-matrix-vector product trans(x) * a * y.
|
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 void checkMatrix(double[][] a)
a - a double matrixpublic static void CheckMatrix(double[][] a)
Matrix.checkMatrix(double[][]) instead.a - a double matrixpublic static void checkSquareMatrix(double[][] a)
a - a double matrixpublic static void CheckSquareMatrix(double[][] a)
Matrix.checkSquareMatrix(double[][]) instead.a - a double matrixpublic static double[][] transpose(double[][] a)
a - a double matrixdouble matrix which is the transpose of
the argumentpublic static double[] multiply(double[] x,
double[][] a)
x - a double row arraya - a double rectangular matrixdouble vector representing the product of
the arguments, x*apublic static double[] multiply(double[] x,
double[][] a,
Matrix.MatrixType aType)
x - a double row arraya - a double rectangular matrixaType - a MatrixType indicating if matrix
a is general or symmetricdouble vector representing the product
of the arguments, x*apublic static double[] multiply(double[][] a,
double[] x)
a - a double rectangular matrixx - a double column arraydouble vector representing the product
of the arguments, a*xpublic static double[] multiply(double[][] a,
Matrix.MatrixType aType,
double[] x)
a - a double rectangular matrixaType - a MatrixType indicating if matrix
a is general or symmetricx - a double column arraydouble vector representing the product
of the arguments, a*xpublic static double[][] multiply(double[][] a,
double[][] b)
a - a double rectangular arrayb - a double rectangular arraydouble matrix product of a
times bpublic static double[][] multiply(double[][] a,
double[][] b,
int numberOfThreads)
a * b, using
multiple java.lang.Threads.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
bpublic static double[][] multiply(double[][] a,
Matrix.MatrixType aType,
double[][] b,
Matrix.MatrixType bType,
int numberOfThreads)
a - a double rectangular arrayaType - a MatrixType indicating if matrix
a is general or symmetricb - a double rectangular arraybType - a matrixType indicating if matrix
b is general or symmetricnumberOfThreads - 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 bpublic static double multiply(double[] x,
double[][] a,
Matrix.MatrixType aType,
double[] y,
boolean equalVectors)
x - a double arraya - a double rectangular matrixaType - a MatrixType indicating if matrix
a is general or symmetricy - a double arrayequalVectors - a boolean indicating if the two
vectors x and y are
numerically equaldouble scalar representing the product
of the arguments,
trans(x)*a*ypublic 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 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 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 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 boolean isSymmetric(double[][] a)
a - a double rectangular arrayboolean which is true if the
matrix is symmetric and false otherwiseIllegalArgumentException - This exception is thrown if the
lengths of the rows of the input matrix are not uniform.public static double[][] inverseLowerTriangular(double[][] a)
a - a double square lower triangular matrixdouble matrix containing the inverse of
apublic static double[][] inverseUpperTriangular(double[][] a)
a - a double square upper triangular matrixdouble matrix containing the inverse of aCopyright © 2020 Rogue Wave Software. All rights reserved.