Modifier and Type | Method and Description |
---|---|
static Complex[][] |
add(Complex[][] a,
Complex[][] b)
Add two rectangular
Complex arrays, a + b. |
static void |
checkMatrix(Complex[][] a)
Check that all of the rows in the
Complex matrix have the same length. |
static void |
checkSquareMatrix(Complex[][] a)
Check that the
Complex matrix is square. |
static double |
frobeniusNorm(Complex[][] a)
Return the Frobenius norm of a
Complex matrix. |
static double |
infinityNorm(Complex[][] a)
Return the infinity norm of a
Complex matrix. |
static Complex[] |
multiply(Complex[][] a,
Complex[] x)
Multiply the rectangular array a and the column vector x, both
Complex . |
static Complex[][] |
multiply(Complex[][] a,
Complex[][] b)
Multiply two
Complex rectangular arrays, a * b. |
static Complex[][] |
multiply(Complex[][] a,
Complex[][] b,
int numberOfThreads)
Multiply two
Complex rectangular arrays, a *
b , using multiple java.lang.Thread s. |
static Complex[] |
multiply(Complex[] x,
Complex[][] a)
Return the product of the row vector x and the rectangular array a, both
Complex . |
static double |
oneNorm(Complex[][] a)
Return the
Complex matrix one norm. |
static Complex[][] |
subtract(Complex[][] a,
Complex[][] b)
Subtract two
Complex rectangular arrays, a - b. |
static Complex[][] |
transpose(Complex[][] a)
Return the transpose of a
Complex matrix. |
public static Complex[][] add(Complex[][] a, Complex[][] b)
Complex
arrays, a + b.a
- a Complex
rectangular arrayb
- a Complex
rectangular arrayComplex
matrix sum of the two argumentsIllegalArgumentException
- 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(Complex[][] a)
Complex
matrix have the same length.a
- a Complex
matrixIllegalArgumentException
- This exception is thrown when the lengths of the
rows of the input matrix are not uniform.public static void checkSquareMatrix(Complex[][] a)
Complex
matrix is square.a
- a Complex
matrixIllegalArgumentException
- This exception is thrown when the matrix is not square..public static double frobeniusNorm(Complex[][] a)
Complex
matrix.a
- a Complex
rectangular matrixdouble
value equal to the Frobenius norm of the matrixIllegalArgumentException
- This exception is thrown when
the lengths of the rows of the input matrix is not uniform.public static double infinityNorm(Complex[][] a)
Complex
matrix.a
- a Complex
rectangular matrixdouble
value equal to the maximum of the row sums
of the absolute values of the array elements.IllegalArgumentException
- This exception is thrown when
the lengths of the rows of the input matrix is not uniform.public static Complex[] multiply(Complex[][] a, Complex[] x)
Complex
.a
- a Complex
rectangular matrixx
- a Complex
vectorComplex
vector containing 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, and
(2) the number of columns in the input matrix is not equal to
the number of elements in the input vector.public static Complex[][] multiply(Complex[][] a, Complex[][] b)
Complex
rectangular arrays, a * b.a
- a Complex
rectangular arrayb
- a Complex
rectangular arrayComplex
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 Complex[][] multiply(Complex[][] a, Complex[][] b, int numberOfThreads)
Complex
rectangular arrays, a
*
b
, using multiple java.lang.Thread
s.a
- a Complex
rectangular arrayb
- a Complex
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.Complex
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 Complex[] multiply(Complex[] x, Complex[][] a)
Complex
.x
- a Complex
row vectora
- a Complex
rectangular matrixComplex
vector containing 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(Complex[][] a)
Complex
matrix one norm.a
- a Complex
rectangular arraydouble
value equal to the maximum of the column sums
of the absolute values of the array elementsIllegalArgumentException
- This exception is thrown when
the lengths of the rows of the input matrix is not uniform.public static Complex[][] subtract(Complex[][] a, Complex[][] b)
Complex
rectangular arrays, a - b.a
- a Complex
rectangular arrayb
- a Complex
rectangular arrayComplex
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 Complex[][] transpose(Complex[][] a)
Complex
matrix.a
- a Complex
matrixComplex
matrix transpose of the argumentIllegalArgumentException
- This exception is thrown when
the lengths of the rows of the input matrix are not uniform.Copyright © 1970-2015 Rogue Wave Software
Built October 13 2015.