Modifier and Type | Class and Description |
---|---|
static class |
ComplexMatrix.MatrixType
Indicates which matrix type is used.
|
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 |
CheckMatrix(Complex[][] a)
Deprecated.
Use
ComplexMatrix.checkMatrix(Complex[][]) instead. |
static void |
checkSquareMatrix(Complex[][] a)
Check that the
Complex matrix is square. |
static void |
CheckSquareMatrix(Complex[][] a)
Deprecated.
Use
ComplexMatrix.checkSquareMatrix(Complex[][]) instead. |
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 boolean |
isHermitian(Complex[][] a)
Check if the
Complex matrix is Hermitian. |
static boolean |
isSymmetric(Complex[][] a)
Check if the
Complex matrix is symmetric. |
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[][] a,
ComplexMatrix.MatrixType aType,
Complex[] x)
Multiply the rectangular array a and the column vector x, both
Complex . |
static Complex[][] |
multiply(Complex[][] a,
ComplexMatrix.MatrixType aType,
Complex[][] b,
ComplexMatrix.MatrixType bType,
int numberOfThreads)
Multiply two
Complex rectangular arrays of type
MatrixType , 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 Complex[] |
multiply(Complex[] x,
Complex[][] a,
ComplexMatrix.MatrixType aType)
Return the product of the row vector x and the rectangular array a, both
Complex . |
static Complex |
multiply(Complex[] x,
Complex[][] a,
ComplexMatrix.MatrixType aType,
Complex[] y,
boolean equalVectors)
Compute vector-matrix-vector product trans(conj(x)) * a * y.
|
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 void checkMatrix(Complex[][] a)
Complex
matrix have the
same length.a
- a Complex
matrixIllegalArgumentException
- This exception is thrown if the
lengths of the rows of the input matrix are not uniform.public static void CheckMatrix(Complex[][] a)
ComplexMatrix.checkMatrix(Complex[][])
instead.Complex
matrix have the
same length.a
- a Complex
matrixIllegalArgumentException
- This exception is thrown if 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 if the
matrix is not square.public static void CheckSquareMatrix(Complex[][] a)
ComplexMatrix.checkSquareMatrix(Complex[][])
instead.Complex
matrix is square.a
- a Complex
matrixIllegalArgumentException
- This exception is thrown if the
matrix is not square.public static Complex[][] transpose(Complex[][] a)
Complex
matrix.a
- a Complex
matrixComplex
matrix transpose of the argumentIllegalArgumentException
- This exception is thrown if the
lengths of the rows of the input matrix are not uniform.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 if
(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 Complex[] multiply(Complex[] x, Complex[][] a, ComplexMatrix.MatrixType aType)
Complex
.x
- a Complex
row vectora
- a Complex
rectangular matrixaType
- a MatrixType
indicating if matrix
a
is general, symmetric or HermitianComplex
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, or
(3) the input matrix is not square in the symmetric or
Hermitian case.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, ComplexMatrix.MatrixType aType, Complex[] x)
Complex
.a
- a Complex
rectangular matrixaType
- a MatrixType
indicating if matrix
a
is general, symmetric or Hermitianx
- a Complex
vectorComplex
vector containing the product of the
arguments, a
*x
IllegalArgumentException
- This exception is thrown if
(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 vector, or
(3) the input matrix is not square in the symmetric or
Hermitian case.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 if
(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 if
(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, ComplexMatrix.MatrixType aType, Complex[][] b, ComplexMatrix.MatrixType bType, int numberOfThreads)
Complex
rectangular arrays of type
MatrixType
, a
* b
, using multiple
java.lang.Thread
s.a
- a Complex
rectangular arrayaType
- a MatrixType
indicating if matrix
a
is general, symmetric or Hermitianb
- a Complex
rectangular arraybType
- a matrixType
indicating if matrix
b
is general, symmetric or HermitiannumberOfThreads
- 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 if
(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
, or
(3) a symmetric or Hermitian input matrix a
or
b
is not square.public static Complex multiply(Complex[] x, Complex[][] a, ComplexMatrix.MatrixType aType, Complex[] y, boolean equalVectors)
x
- a Complex
vectora
- a Complex
rectangular matrixaType
- a MatrixType
indicating if matrix
a
is general, symmetric or Hermitiany
- a Complex
vectorequalVectors
- a boolean
indicating if the two
vectors x
and y
are
numerically equalComplex
scalar representing the product of the
arguments,
trans(conj(x))
*a
*y
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 if
(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[][] 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 if
(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 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 if the
lengths of the rows of the input matrix are not uniform.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 if the
lengths of the rows of the input matrix are 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 if the
the lengths of the rows of the input matrix are not uniform.public static boolean isSymmetric(Complex[][] a)
Complex
matrix is symmetric.a
- a Complex
rectangular arrayboolean
which is true
if the
matrix is symmetric and false
otherwise.IllegalArgumentException
- This exception is thrown if the
lengths of the rows of the input matrix are not uniform.public static boolean isHermitian(Complex[][] a)
Complex
matrix is Hermitian.a
- a Complex
rectangular arrayboolean
which is true
if the
matrix is Hermitian and false
otherwise.IllegalArgumentException
- This exception is thrown if the
lengths of the rows of the input matrix are not uniform.Copyright © 2020 Rogue Wave Software. All rights reserved.