Package | Description |
---|---|
ptolemy.data |
Packages for manipulating data that passes between actors.
|
ptolemy.math |
Math classes.
|
ptolemy.math.test |
The ptolemy.math.test package.
|
Modifier and Type | Method and Description |
---|---|
protected Complex[][] |
ComplexMatrixToken._getInternalComplexMatrix()
Return a reference to the internal 2-D matrix of complex
numbers that represents this Token.
|
Complex[][] |
DoubleMatrixToken.complexMatrix()
Return the content of this token as a 2-D Complex matrix.
|
Complex[][] |
MatrixToken.complexMatrix()
Return a copy of the content of this token as a 2-D Complex matrix.
|
Complex[][] |
ComplexMatrixToken.complexMatrix()
Return the content of this token as a new 2-D Complex matrix.
|
Complex[][] |
IntMatrixToken.complexMatrix()
Return the content of this token as a 2-D Complex matrix.
|
Complex |
DoubleToken.complexValue()
Return the value of this token as a Complex.
|
Complex |
UnsignedByteToken.complexValue()
Return the value of this token as a Complex.
|
Complex |
ShortToken.complexValue()
Return the value of this token as a Complex.
|
Complex |
ComplexToken.complexValue()
Return the value of this token as a Complex.
|
Complex |
IntToken.complexValue()
Return the value of this token as a Complex.
|
Complex |
ScalarToken.complexValue()
Return the value of this token as a Complex.
|
Complex |
ComplexMatrixToken.getElementAt(int row,
int column)
Return the element of the contained matrix at the specified
row and column.
|
Constructor and Description |
---|
ComplexMatrixToken(Complex[][] value)
Construct a ComplexMatrixToken with the specified 2-D matrix.
|
ComplexMatrixToken(Complex[][] value,
int copy)
Construct a ComplexMatrixToken with the specified 2-D matrix.
|
ComplexToken(Complex value)
Construct a ComplexToken with the specified value.
|
Modifier and Type | Field and Description |
---|---|
static Complex |
Complex.I
A Complex number representing i.
|
static Complex |
Complex.NEGATIVE_INFINITY
A Complex number representing negative infinity, by which we mean
that both the real and imaginary parts are equal to
Double.NEGATIVE_INFINITY.
|
static Complex |
Complex.ONE
A Complex number representing one.
|
static Complex |
Complex.POSITIVE_INFINITY
A Complex number representing positive infinity, by which we mean
that both the real and imaginary parts are equal to
Double.POSITIVE_INFINITY.
|
static Complex |
Complex.ZERO
A Complex number representing zero.
|
Modifier and Type | Method and Description |
---|---|
protected static Complex[][] |
ComplexMatrixMath._zeroMatrix(Complex[][] matrix,
int rows,
int columns)
Place zeroes in specific places of the given matrix.
|
Complex |
Complex.acos()
Return the principal arc cosine of this complex number.
|
static Complex |
Complex.acos(Complex z)
Return the principal arc cosine of the specified complex number.
|
Complex |
Complex.acosh()
Return the principal hyperbolic arc cosine of this
complex number.
|
static Complex |
Complex.acosh(Complex z)
Return the principal hyperbolic arc cosine of the given
complex number.
|
Complex |
Complex.add(Complex z)
Return the sum of this complex number and the argument z.
|
static Complex[][] |
ComplexMatrixMath.add(Complex[][] matrix,
Complex z)
Return a new matrix that is constructed from the argument by
adding the second argument to every element.
|
static Complex[][] |
ComplexMatrixMath.add(Complex[][] matrix1,
Complex[][] matrix2)
Return a new matrix that is constructed from the argument by
adding the second matrix to the first one.
|
static Complex[] |
ComplexArrayMath.add(Complex[] array,
Complex z)
Return a new array that is constructed from array by
adding the complex number z to every element of array.
|
static Complex[] |
ComplexArrayMath.add(Complex[] array1,
Complex[] array2)
Return a new array that is the element-by-element sum of the two
input arrays.
|
static Complex[][] |
ComplexMatrixMath.allocCopy(Complex[][] matrix)
Return a new matrix that is a copy of the matrix argument.
|
static Complex[] |
ComplexArrayMath.append(Complex[] array1,
Complex[] array2)
Return a new array that is the result of appending array2
to the end of array1.
|
static Complex[] |
ComplexArrayMath.append(Complex[] array1,
int idx1,
int length1,
Complex[] array2,
int idx2,
int length2)
Return a new array that is the result of appending
length2 elements of array2, starting from the
idx2th element, to length1 elements of
array1, starting from the idx1th element.
|
static Complex[][] |
ComplexMatrixMath.applyBinaryOperation(ComplexBinaryOperation op,
Complex[][] matrix,
Complex z)
Return a new matrix that is formed by applying an instance of
a ComplexBinaryOperation to each element in the input matrix,
using z as the right argument in all cases and the
matrix elements as the left arguments
(op.operate(matrix[i][j], z)).
|
static Complex[][] |
ComplexMatrixMath.applyBinaryOperation(ComplexBinaryOperation op,
Complex[][] matrix1,
Complex[][] matrix2)
Return a new matrix that is formed by applying an instance of a
ComplexBinaryOperation to the two matrices, element by element,
using the elements of the first matrix as the left operands and the
elements of the second matrix as the right operands.
|
static Complex[] |
ComplexArrayMath.applyBinaryOperation(ComplexBinaryOperation op,
Complex[] array,
Complex z)
Return a new array that is formed by applying an instance of a
ComplexBinaryOperation to each element in the input array,
using z as the right operand in all cases and the array elements
as the left operands (op.operate(array[i], z)).
|
static Complex[] |
ComplexArrayMath.applyBinaryOperation(ComplexBinaryOperation op,
Complex[] array1,
Complex[] array2)
Return a new array that is formed by applying an instance of a
ComplexBinaryOperation to the two arrays, element by element,
using the elements of the first array as the left operands and the
elements of the second array as the right operands.
|
static Complex[] |
ComplexArrayMath.applyBinaryOperation(ComplexBinaryOperation op,
Complex z,
Complex[] array)
Return a new array that is formed by applying an instance of a
ComplexBinaryOperation to each element in the input array,
using z as the left argument to op in all cases and
the array elements as the right arguments (op.operate(z, array[i])).
|
static Complex[][] |
ComplexMatrixMath.applyBinaryOperation(ComplexBinaryOperation op,
Complex z,
Complex[][] matrix)
Return a new matrix that is formed by applying an instance of
a ComplexBinaryOperation to each element in the input matrix,
using z as the left argument in all cases and the
matrix elements as the right arguments (z,
op.operate(matrix[i][j])).
|
static Complex[] |
ComplexArrayMath.applyUnaryOperation(ComplexUnaryOperation op,
Complex[] array)
Return a new array that is formed by applying an instance of a
ComplexUnaryOperation to each element in the input array
(op.operate(array[i])).
|
static Complex[][] |
ComplexMatrixMath.applyUnaryOperation(ComplexUnaryOperation op,
Complex[][] matrix)
Return a new matrix that is formed by applying an instance of a
ComplexUnaryOperation to each element in the input matrix
(op.operate(matrix[i][j])).
|
Complex |
Complex.asin()
Return the principal arc sine of this complex number.
|
static Complex |
Complex.asin(Complex z)
Return the principal arc sine of the given complex number.
|
Complex |
Complex.asinh()
Return the principal hyperbolic arc sine of this
complex number.
|
static Complex |
Complex.asinh(Complex z)
Return the principal hyperbolic arc sine of the given
complex number.
|
Complex |
Complex.atan()
Return the principal arc tangent of this complex
number.
|
static Complex |
Complex.atan(Complex z)
Return the principal arc tangent of the given complex
number.
|
Complex |
Complex.atanh()
Return the principal hyperbolic arc tangent of
this complex number.
|
static Complex |
Complex.atanh(Complex z)
Return the principal hyperbolic arc tangent of
the given complex number.
|
Complex |
Complex.conjugate()
Return the complex conjugate of this complex number.
|
static Complex |
Complex.conjugate(Complex z)
Return the complex conjugate of the specified complex number.
|
static Complex[] |
ComplexArrayMath.conjugate(Complex[] array)
Return a new array of complex numbers that is formed by taking the
complex-conjugate of each element in the argument array.
|
static Complex[][] |
ComplexMatrixMath.conjugate(Complex[][] matrix)
Return a new matrix that is constructed by conjugating the elements
of the input matrix.
|
static Complex |
Complex.conjugate(double z)
Return the complex conjugate of the specified real number, which is
just the real number itself.
|
static Complex[][] |
ComplexMatrixMath.conjugateTranspose(Complex[][] matrix)
Return a new matrix that is constructed by transposing the input
matrix and conjugating the elements.
|
static Complex[] |
SignalProcessing.convolve(Complex[] array1,
Complex[] array2)
Return a new array that is the convolution of two complex arrays.
|
Complex |
Complex.cos()
Return the cosine of this complex number.
|
static Complex |
Complex.cos(Complex z)
Return the cosine of the given complex number.
|
Complex |
Complex.cosh()
Return the hyperbolic cosine of this complex
number.
|
static Complex |
Complex.cosh(Complex z)
Return the hyperbolic cosine of the given complex
number.
|
Complex |
Complex.cot()
Return the cotangent of this complex number.
|
static Complex |
Complex.cot(Complex z)
Return the cotangent of the given complex number.
|
static Complex[][] |
ComplexMatrixMath.crop(Complex[][] matrix,
int rowStart,
int colStart,
int rowSpan,
int colSpan)
Return a new matrix that is a sub-matrix of the input
matrix argument.
|
Complex |
Complex.csc()
Return the cosecant of this complex number.
|
static Complex |
Complex.csc(Complex z)
Return the cosecant of the given complex number.
|
static Complex |
ComplexMatrixMath.determinant(Complex[][] matrix)
Return the determinant of a square matrix.
|
static Complex[][] |
ComplexMatrixMath.diag(Complex[] array)
Return a new matrix that is constructed by placing the
elements of the input array on the diagonal of the square
matrix, starting from the top left corner down to the bottom
right corner.
|
Complex |
Complex.divide(Complex divisor)
Divide this complex number by the argument, and return the result
in a new Complex object.
|
static Complex[][] |
ComplexMatrixMath.divide(Complex[][] matrix,
Complex z)
Return a new matrix that is constructed from the argument by
dividing the second argument to every element.
|
static Complex[] |
ComplexArrayMath.divide(Complex[] array,
Complex divisor)
Return a new array that is the result of dividing each element of
the given array by the given value.
|
static Complex[][] |
ComplexMatrixMath.divideElements(Complex[][] matrix1,
Complex[][] matrix2)
Return a new matrix that is constructed by element-by-element
division of the two matrix arguments.
|
static Complex[] |
ComplexArrayMath.divideElements(Complex[] array1,
Complex[] array2)
Return a new array that is the element-by-element division of
the first array by the second array.
|
static Complex |
ComplexArrayMath.dotProduct(Complex[] array1,
Complex[] array2)
Return a complex number that is the dot product of the two argument
arrays.
|
Complex |
Complex.exp()
Return the exponential of this complex number,
or ez,
where
z is this complex number. |
static Complex |
Complex.exp(Complex z)
Return the exponential of the specified complex number,
or ez,
where
z is the argument. |
static Complex[] |
SignalProcessing.FFT(Complex[] x)
Return a new array of complex numbers which is the FFT
of an input array of complex numbers.
|
static Complex[] |
SignalProcessing.FFT(Complex[] x,
int order)
Return a new array of complex numbers which is the FFT
of an input array of complex numbers.
|
static Complex[] |
SignalProcessing.FFTComplexOut(Complex[] x)
Return a new array of Complex's which is the forward FFT
of an input array of Complex's.
|
static Complex[] |
SignalProcessing.FFTComplexOut(Complex[] x,
int order)
Return a new array of Complex's which is the forward FFT
of an input array of Complex's.
|
static Complex[] |
SignalProcessing.FFTComplexOut(double[] x)
Return a new array of Complex's which is the forward FFT
of a real input array of doubles.
|
static Complex[] |
SignalProcessing.FFTComplexOut(double[] x,
int order)
Return a new array of Complex's which is the forward FFT
of a real input array of doubles.
|
static Complex[] |
ComplexArrayMath.formComplexArray(double[] realPart,
double[] imagPart)
Return a new array of Complex numbers using two arrays for the
real and imaginary parts.
|
static Complex[] |
ComplexMatrixMath.fromMatrixToArray(Complex[][] matrix)
Return a new array that is filled with the contents of the matrix.
|
static Complex[] |
ComplexMatrixMath.fromMatrixToArray(Complex[][] matrix,
int maxRow,
int maxCol)
Return a new array that is filled with the contents of the matrix.
|
static Complex[][] |
ComplexMatrixMath.identity(int dim)
Return an new identity matrix with the specified dimension.
|
static Complex[][] |
ComplexMatrixMath.identityMatrixComplex(int dim)
Return an new identity matrix with the specified dimension.
|
static Complex[] |
SignalProcessing.IFFT(Complex[] x)
Return a new array of complex numbers which is the inverse FFT
of an input array of complex numbers.
|
static Complex[] |
SignalProcessing.IFFT(Complex[] x,
int order)
Return a new array of complex numbers which is the inverse FFT
of an input array of complex numbers.
|
static Complex[] |
SignalProcessing.IFFTComplexOut(Complex[] x)
Return a new array of Complex's which is the inverse FFT
of an input array of Complex's.
|
static Complex[] |
SignalProcessing.IFFTComplexOut(Complex[] x,
int order)
Return a new array of Complex's which is the forward FFT
of an input array of Complex's.
|
static Complex[][] |
ComplexMatrixMath.inverse(Complex[][] A)
Return a new matrix that is constructed by inverting the input
matrix.
|
static Complex[] |
ComplexArrayMath.limit(Complex[] array,
Complex bottom,
Complex top)
Return a new array that is a copy of the first argument except
that the elements are limited to lie within the specified range.
|
Complex |
Complex.log()
Return the natural logarithm of this complex
number.
|
static Complex |
Complex.log(Complex z)
Return the natural logarithm of the specified complex
number.
|
Complex |
Complex.multiply(Complex w)
Return a new complex number that is formed by multiplying this
complex number by the specified complex number.
|
static Complex[][] |
ComplexMatrixMath.multiply(Complex[][] matrix,
Complex z)
Return a new matrix that is constructed by multiplying the matrix
by a complex scaleFactor.
|
static Complex[] |
ComplexMatrixMath.multiply(Complex[][] matrix,
Complex[] array)
Return a new array that is constructed from the argument by
pre-multiplying the array (treated as a row vector) by a matrix.
|
static Complex[][] |
ComplexMatrixMath.multiply(Complex[][] matrix1,
Complex[][] matrix2)
Return a new matrix that is constructed from the argument by
multiplying the first matrix by the second one.
|
static Complex[][] |
ComplexMatrixMath.multiply(Complex[][] matrix,
double scaleFactor)
Return a new matrix that is constructed by multiplying the matrix
by a real scaleFactor.
|
static Complex[] |
ComplexArrayMath.multiply(Complex[] array,
Complex factor)
Return a new array that is constructed from the argument by
multiplying each element in array by the second argument,
which is a complex number.
|
static Complex[] |
ComplexArrayMath.multiply(Complex[] array1,
Complex[] array2)
Return a new array that is the element-by-element multiplication of
the two input arrays.
|
static Complex[] |
ComplexMatrixMath.multiply(Complex[] array,
Complex[][] matrix)
Return a new array that is constructed from the argument by
post-multiplying the matrix by an array (treated as a row vector).
|
static Complex[][] |
ComplexMatrixMath.multiplyElements(Complex[][] matrix1,
Complex[][] matrix2)
Return a new matrix that is constructed by element by element
multiplication of the two matrix arguments.
|
Complex |
Complex.negate()
Negate this complex number.
|
static Complex[] |
ComplexArrayMath.negative(Complex[] array)
Return a new array that is the formed from the additive inverse of each
element of the input array (-array[i]).
|
static Complex[][] |
ComplexMatrixMath.negative(Complex[][] matrix)
Return a new matrix that is the additive inverse of the
argument matrix.
|
Complex |
ComplexUnaryOperation.operate(Complex operand)
Operate on the operand, returning a value of the same type.
|
Complex |
ComplexBinaryOperation.operate(Complex leftOperand,
Complex rightOperand)
Operate on the operands, returning a value of the same
type.
|
static Complex[][] |
ComplexMatrixMath.orthogonalizeColumns(Complex[][] matrix)
Return a new matrix that is formed by orthogonalizing the
columns of the input matrix (the column vectors are
orthogonal).
|
static Complex[][] |
ComplexMatrixMath.orthogonalizeRows(Complex[][] matrix)
Return a new matrix that is formed by orthogonalizing the rows of the
input matrix (the row vectors are orthogonal).
|
static Complex[][] |
ComplexMatrixMath.orthonormalizeColumns(Complex[][] matrix)
Return a new matrix that is formed by orthonormalizing the
columns of the input matrix (the column vectors are orthogonal
and have norm 1).
|
static Complex[][] |
ComplexMatrixMath.orthonormalizeRows(Complex[][] matrix)
Return a new matrix that is formed by orthonormalizing the
rows of the input matrix (the row vectors are orthogonal and
have norm 1).
|
static Complex[] |
ComplexArrayMath.padMiddle(Complex[] array,
int newLength)
Return a new array of Complex numbers that is formed by padding the
middle of the array with 0's.
|
static Complex |
Complex.polarToComplex(double magnitude,
double angle)
Return a new complex number with the specified magnitude and angle.
|
static Complex[] |
SignalProcessing.poleZeroToFrequency(Complex[] poles,
Complex[] zeros,
Complex gain,
int numSteps)
Given an array of pole locations, an array of zero locations, and a
gain term, return frequency response specified by these.
|
static Complex[] |
ComplexArrayMath.polynomial(Complex[] roots)
Given the roots of a polynomial, return a polynomial that has
has such roots.
|
Complex |
Complex.pow(Complex y)
Return zy
where z is this complex number and y is the
argument, a Complex.
|
static Complex[] |
ComplexArrayMath.pow(Complex[] array,
double exponent)
Return a new array of complex numbers that is formed by raising each
element to the specified exponent, a double.
|
static Complex |
Complex.pow(Complex z,
Complex y)
Return a new complex number with value z y
where z is the first argument and y is the second
argument.
|
static Complex |
Complex.pow(Complex z,
double y)
Return a new complex number with value z y
where z is the first argument and y is the second
argument.
|
Complex |
Complex.pow(double y)
Return a new complex number with value z y
where z is this complex number and y is the
argument, a double.
|
static Complex |
Complex.pow(double z,
Complex y)
Return a new complex number with value z y
where z is the first argument and y is the second
argument.
|
static Complex |
ComplexArrayMath.product(Complex[] array)
Return the product of the elements in the array.
|
Complex |
Complex.reciprocal()
Return the reciprocal of this complex number.
|
static Complex |
Complex.reciprocal(Complex z)
Return the reciprocal of this complex number.
|
static Complex[] |
ComplexArrayMath.resize(Complex[] array,
int newLength)
Return a new array of length newLength that is formed by
either truncating or padding the input array.
|
static Complex[] |
ComplexArrayMath.resize(Complex[] array,
int newLength,
int startIdx)
Return a new array of length newLength that is formed by
either truncating or padding the input array.
|
static Complex[] |
Complex.roots(Complex z,
int n)
Return the nth roots of the given complex number in an
array.
|
Complex[] |
Complex.roots(int n)
Return the nth roots of this complex number in an array.
|
static Complex[] |
ComplexArrayMath.scale(Complex[] array,
Complex factor)
Return a new array that is constructed from the argument by
scaling each element in array by factor, which is a
complex number.
|
static Complex[] |
ComplexArrayMath.scale(Complex[] array,
double factor)
Return a new array that is constructed from the argument by
scaling each element in the array by factor, which is a
double.
|
Complex |
Complex.scale(double scalar)
Return a new complex number with value equal to the product
of this complex number and the real argument.
|
Complex |
Complex.sec()
Return a new complex number with value equal to the secant
of this complex number.
|
static Complex |
Complex.sec(Complex z)
Return a new complex number with value equal to the secant
of the given complex number.
|
Complex |
Complex.sin()
Return a new complex number with value equal to the sine
of this complex number.
|
static Complex |
Complex.sin(Complex z)
Return a new complex number with value equal to the sine
of the given complex number.
|
Complex |
Complex.sinh()
Return a new complex number with value equal to the hyperbolic sine
of this complex number.
|
static Complex |
Complex.sinh(Complex z)
Return a new complex number with value equal to the hyperbolic sine
of this complex number.
|
Complex |
Complex.sqrt()
Return a new complex number with its value equal to the
the square root of this complex number.
|
static Complex |
Complex.sqrt(Complex z)
Return a new complex number with its value equal to the
the square root of the specified complex number.
|
Complex |
Complex.subtract(Complex w)
Return a new complex number formed by subtracting the specified
complex number from this complex number.
|
static Complex[][] |
ComplexMatrixMath.subtract(Complex[][] matrix1,
Complex[][] matrix2)
Return a new matrix that is constructed from the argument by
subtracting the second matrix from the first one.
|
static Complex[] |
ComplexArrayMath.subtract(Complex[] array,
Complex z)
Return a new array that is constructed by subtracting the complex
number z from every element in the given array.
|
static Complex[] |
ComplexArrayMath.subtract(Complex[] array1,
Complex[] array2)
Return a new array that is the element-by-element
subtraction of the second array from the first array.
|
static Complex |
ComplexMatrixMath.sum(Complex[][] matrix)
Return the sum of the elements of a matrix.
|
Complex |
Complex.tan()
Return a new complex number with value equal to the tangent
of this complex number.
|
static Complex |
Complex.tan(Complex z)
Return a new complex number with value equal to the tangent
of the given complex number.
|
Complex |
Complex.tanh()
Return a new complex number with value equal to the hyperbolic tangent
of this complex number.
|
static Complex |
Complex.tanh(Complex z)
Return a new complex number with value equal to the hyperbolic tangent
of the given complex number.
|
static Complex[] |
DoubleArrayMath.toComplexArray(double[] array)
Return a new array that is formed by converting the doubles in
the argument array to complex numbers.
|
static Complex[] |
FloatArrayMath.toComplexArray(float[] array)
Return a new array that is formed by converting the floats in
the argument array to complex numbers.
|
static Complex[] |
IntegerArrayMath.toComplexArray(int[] array)
Return a new array that is formed by converting the integers in
the argument array to complex numbers.
|
static Complex[] |
LongArrayMath.toComplexArray(long[] array)
Return a new array that is formed by converting the long numbers in
the argument array to complex numbers.
|
static Complex[][] |
DoubleMatrixMath.toComplexMatrix(double[][] matrix)
Return a new matrix that is formed by converting the doubles
in the argument matrix to complex numbers.
|
static Complex[][] |
FloatMatrixMath.toComplexMatrix(float[][] matrix)
Return a new matrix that is formed by converting the floats
in the argument matrix to complex numbers.
|
static Complex[][] |
IntegerMatrixMath.toComplexMatrix(int[][] matrix)
Return a new matrix that is formed by converting the integers
in the argument matrix to complex numbers.
|
static Complex[][] |
LongMatrixMath.toComplexMatrix(long[][] matrix)
Return a new matrix that is formed by converting the long values
in the argument matrix to complex numbers.
|
static Complex[][] |
ComplexMatrixMath.toMatrixFromArray(Complex[] array,
int rows,
int cols)
Return a new matrix of complex numbers that is initialized
from a 1-D array.
|
static Complex |
ComplexMatrixMath.trace(Complex[][] matrix)
Return the trace of a square matrix, which is the sum of the
diagonal entries A11 + A22 + ... + Ann
Throw an IllegalArgumentException if the matrix is not square.
|
static Complex[][] |
ComplexMatrixMath.transpose(Complex[][] matrix)
Return a new matrix that is constructed by transposing the input
matrix.
|
static Complex[][] |
ComplexMatrixMath.zero(int rows,
int columns)
Return a new complex matrix whose entries are all zero.
|
Modifier and Type | Method and Description |
---|---|
protected static void |
ComplexMatrixMath._checkSameDimension(java.lang.String caller,
Complex[][] matrix1,
Complex[][] matrix2)
Check that the two matrix arguments are of the same dimension.
|
protected static void |
ComplexMatrixMath._checkSameDimension(java.lang.String caller,
Complex[][] matrix1,
Complex[][] matrix2)
Check that the two matrix arguments are of the same dimension.
|
protected static int |
ComplexMatrixMath._checkSquare(java.lang.String caller,
Complex[][] matrix)
Check that the argument matrix is a square matrix.
|
protected static int |
ComplexMatrixMath._columns(Complex[][] matrix)
Return the number of columns of a matrix.
|
protected static int |
ComplexArrayMath._commonLength(Complex[] array1,
Complex[] array2,
java.lang.String methodName)
Throw an exception if the two arrays are not of the same length,
or if either array is null.
|
protected static int |
ComplexArrayMath._commonLength(Complex[] array1,
Complex[] array2,
java.lang.String methodName)
Throw an exception if the two arrays are not of the same length,
or if either array is null.
|
protected static java.lang.String |
ComplexMatrixMath._dimensionString(Complex[][] matrix)
Print out the dimensions of the given matrix.
|
protected static java.lang.Object[] |
ComplexMatrixMath._orthogonalizeRows(Complex[][] rowArrays)
Orthogonalize the rows of a matrix.
|
protected static int |
ComplexMatrixMath._rows(Complex[][] matrix)
Return the number of rows of a matrix.
|
protected static Complex[][] |
ComplexMatrixMath._zeroMatrix(Complex[][] matrix,
int rows,
int columns)
Place zeroes in specific places of the given matrix.
|
static double |
Complex.abs(Complex x)
Return the magnitude or absolute value of the specified complex number.
|
static Complex |
Complex.acos(Complex z)
Return the principal arc cosine of the specified complex number.
|
static Complex |
Complex.acosh(Complex z)
Return the principal hyperbolic arc cosine of the given
complex number.
|
Complex |
Complex.add(Complex z)
Return the sum of this complex number and the argument z.
|
static Complex[][] |
ComplexMatrixMath.add(Complex[][] matrix,
Complex z)
Return a new matrix that is constructed from the argument by
adding the second argument to every element.
|
static Complex[][] |
ComplexMatrixMath.add(Complex[][] matrix,
Complex z)
Return a new matrix that is constructed from the argument by
adding the second argument to every element.
|
static Complex[][] |
ComplexMatrixMath.add(Complex[][] matrix1,
Complex[][] matrix2)
Return a new matrix that is constructed from the argument by
adding the second matrix to the first one.
|
static Complex[][] |
ComplexMatrixMath.add(Complex[][] matrix1,
Complex[][] matrix2)
Return a new matrix that is constructed from the argument by
adding the second matrix to the first one.
|
static Complex[] |
ComplexArrayMath.add(Complex[] array,
Complex z)
Return a new array that is constructed from array by
adding the complex number z to every element of array.
|
static Complex[] |
ComplexArrayMath.add(Complex[] array,
Complex z)
Return a new array that is constructed from array by
adding the complex number z to every element of array.
|
static Complex[] |
ComplexArrayMath.add(Complex[] array1,
Complex[] array2)
Return a new array that is the element-by-element sum of the two
input arrays.
|
static Complex[] |
ComplexArrayMath.add(Complex[] array1,
Complex[] array2)
Return a new array that is the element-by-element sum of the two
input arrays.
|
static Complex[][] |
ComplexMatrixMath.allocCopy(Complex[][] matrix)
Return a new matrix that is a copy of the matrix argument.
|
static double |
Complex.angle(Complex z)
Return the angle or argument of this complex number.
|
static Complex[] |
ComplexArrayMath.append(Complex[] array1,
Complex[] array2)
Return a new array that is the result of appending array2
to the end of array1.
|
static Complex[] |
ComplexArrayMath.append(Complex[] array1,
Complex[] array2)
Return a new array that is the result of appending array2
to the end of array1.
|
static Complex[] |
ComplexArrayMath.append(Complex[] array1,
int idx1,
int length1,
Complex[] array2,
int idx2,
int length2)
Return a new array that is the result of appending
length2 elements of array2, starting from the
idx2th element, to length1 elements of
array1, starting from the idx1th element.
|
static Complex[] |
ComplexArrayMath.append(Complex[] array1,
int idx1,
int length1,
Complex[] array2,
int idx2,
int length2)
Return a new array that is the result of appending
length2 elements of array2, starting from the
idx2th element, to length1 elements of
array1, starting from the idx1th element.
|
static Complex[][] |
ComplexMatrixMath.applyBinaryOperation(ComplexBinaryOperation op,
Complex[][] matrix,
Complex z)
Return a new matrix that is formed by applying an instance of
a ComplexBinaryOperation to each element in the input matrix,
using z as the right argument in all cases and the
matrix elements as the left arguments
(op.operate(matrix[i][j], z)).
|
static Complex[][] |
ComplexMatrixMath.applyBinaryOperation(ComplexBinaryOperation op,
Complex[][] matrix,
Complex z)
Return a new matrix that is formed by applying an instance of
a ComplexBinaryOperation to each element in the input matrix,
using z as the right argument in all cases and the
matrix elements as the left arguments
(op.operate(matrix[i][j], z)).
|
static Complex[][] |
ComplexMatrixMath.applyBinaryOperation(ComplexBinaryOperation op,
Complex[][] matrix1,
Complex[][] matrix2)
Return a new matrix that is formed by applying an instance of a
ComplexBinaryOperation to the two matrices, element by element,
using the elements of the first matrix as the left operands and the
elements of the second matrix as the right operands.
|
static Complex[][] |
ComplexMatrixMath.applyBinaryOperation(ComplexBinaryOperation op,
Complex[][] matrix1,
Complex[][] matrix2)
Return a new matrix that is formed by applying an instance of a
ComplexBinaryOperation to the two matrices, element by element,
using the elements of the first matrix as the left operands and the
elements of the second matrix as the right operands.
|
static Complex[] |
ComplexArrayMath.applyBinaryOperation(ComplexBinaryOperation op,
Complex[] array,
Complex z)
Return a new array that is formed by applying an instance of a
ComplexBinaryOperation to each element in the input array,
using z as the right operand in all cases and the array elements
as the left operands (op.operate(array[i], z)).
|
static Complex[] |
ComplexArrayMath.applyBinaryOperation(ComplexBinaryOperation op,
Complex[] array,
Complex z)
Return a new array that is formed by applying an instance of a
ComplexBinaryOperation to each element in the input array,
using z as the right operand in all cases and the array elements
as the left operands (op.operate(array[i], z)).
|
static Complex[] |
ComplexArrayMath.applyBinaryOperation(ComplexBinaryOperation op,
Complex[] array1,
Complex[] array2)
Return a new array that is formed by applying an instance of a
ComplexBinaryOperation to the two arrays, element by element,
using the elements of the first array as the left operands and the
elements of the second array as the right operands.
|
static Complex[] |
ComplexArrayMath.applyBinaryOperation(ComplexBinaryOperation op,
Complex[] array1,
Complex[] array2)
Return a new array that is formed by applying an instance of a
ComplexBinaryOperation to the two arrays, element by element,
using the elements of the first array as the left operands and the
elements of the second array as the right operands.
|
static Complex[] |
ComplexArrayMath.applyBinaryOperation(ComplexBinaryOperation op,
Complex z,
Complex[] array)
Return a new array that is formed by applying an instance of a
ComplexBinaryOperation to each element in the input array,
using z as the left argument to op in all cases and
the array elements as the right arguments (op.operate(z, array[i])).
|
static Complex[] |
ComplexArrayMath.applyBinaryOperation(ComplexBinaryOperation op,
Complex z,
Complex[] array)
Return a new array that is formed by applying an instance of a
ComplexBinaryOperation to each element in the input array,
using z as the left argument to op in all cases and
the array elements as the right arguments (op.operate(z, array[i])).
|
static Complex[][] |
ComplexMatrixMath.applyBinaryOperation(ComplexBinaryOperation op,
Complex z,
Complex[][] matrix)
Return a new matrix that is formed by applying an instance of
a ComplexBinaryOperation to each element in the input matrix,
using z as the left argument in all cases and the
matrix elements as the right arguments (z,
op.operate(matrix[i][j])).
|
static Complex[][] |
ComplexMatrixMath.applyBinaryOperation(ComplexBinaryOperation op,
Complex z,
Complex[][] matrix)
Return a new matrix that is formed by applying an instance of
a ComplexBinaryOperation to each element in the input matrix,
using z as the left argument in all cases and the
matrix elements as the right arguments (z,
op.operate(matrix[i][j])).
|
static Complex[] |
ComplexArrayMath.applyUnaryOperation(ComplexUnaryOperation op,
Complex[] array)
Return a new array that is formed by applying an instance of a
ComplexUnaryOperation to each element in the input array
(op.operate(array[i])).
|
static Complex[][] |
ComplexMatrixMath.applyUnaryOperation(ComplexUnaryOperation op,
Complex[][] matrix)
Return a new matrix that is formed by applying an instance of a
ComplexUnaryOperation to each element in the input matrix
(op.operate(matrix[i][j])).
|
static Complex |
Complex.asin(Complex z)
Return the principal arc sine of the given complex number.
|
static Complex |
Complex.asinh(Complex z)
Return the principal hyperbolic arc sine of the given
complex number.
|
static Complex |
Complex.atan(Complex z)
Return the principal arc tangent of the given complex
number.
|
static Complex |
Complex.atanh(Complex z)
Return the principal hyperbolic arc tangent of
the given complex number.
|
static Complex |
Complex.conjugate(Complex z)
Return the complex conjugate of the specified complex number.
|
static Complex[] |
ComplexArrayMath.conjugate(Complex[] array)
Return a new array of complex numbers that is formed by taking the
complex-conjugate of each element in the argument array.
|
static Complex[][] |
ComplexMatrixMath.conjugate(Complex[][] matrix)
Return a new matrix that is constructed by conjugating the elements
of the input matrix.
|
static Complex[][] |
ComplexMatrixMath.conjugateTranspose(Complex[][] matrix)
Return a new matrix that is constructed by transposing the input
matrix and conjugating the elements.
|
static Complex[] |
SignalProcessing.convolve(Complex[] array1,
Complex[] array2)
Return a new array that is the convolution of two complex arrays.
|
static Complex[] |
SignalProcessing.convolve(Complex[] array1,
Complex[] array2)
Return a new array that is the convolution of two complex arrays.
|
static Complex |
Complex.cos(Complex z)
Return the cosine of the given complex number.
|
static Complex |
Complex.cosh(Complex z)
Return the hyperbolic cosine of the given complex
number.
|
static Complex |
Complex.cot(Complex z)
Return the cotangent of the given complex number.
|
static Complex[][] |
ComplexMatrixMath.crop(Complex[][] matrix,
int rowStart,
int colStart,
int rowSpan,
int colSpan)
Return a new matrix that is a sub-matrix of the input
matrix argument.
|
static Complex |
Complex.csc(Complex z)
Return the cosecant of the given complex number.
|
static Complex |
ComplexMatrixMath.determinant(Complex[][] matrix)
Return the determinant of a square matrix.
|
static Complex[][] |
ComplexMatrixMath.diag(Complex[] array)
Return a new matrix that is constructed by placing the
elements of the input array on the diagonal of the square
matrix, starting from the top left corner down to the bottom
right corner.
|
Complex |
Complex.divide(Complex divisor)
Divide this complex number by the argument, and return the result
in a new Complex object.
|
static Complex[][] |
ComplexMatrixMath.divide(Complex[][] matrix,
Complex z)
Return a new matrix that is constructed from the argument by
dividing the second argument to every element.
|
static Complex[][] |
ComplexMatrixMath.divide(Complex[][] matrix,
Complex z)
Return a new matrix that is constructed from the argument by
dividing the second argument to every element.
|
static Complex[] |
ComplexArrayMath.divide(Complex[] array,
Complex divisor)
Return a new array that is the result of dividing each element of
the given array by the given value.
|
static Complex[] |
ComplexArrayMath.divide(Complex[] array,
Complex divisor)
Return a new array that is the result of dividing each element of
the given array by the given value.
|
static Complex[][] |
ComplexMatrixMath.divideElements(Complex[][] matrix1,
Complex[][] matrix2)
Return a new matrix that is constructed by element-by-element
division of the two matrix arguments.
|
static Complex[][] |
ComplexMatrixMath.divideElements(Complex[][] matrix1,
Complex[][] matrix2)
Return a new matrix that is constructed by element-by-element
division of the two matrix arguments.
|
static Complex[] |
ComplexArrayMath.divideElements(Complex[] array1,
Complex[] array2)
Return a new array that is the element-by-element division of
the first array by the second array.
|
static Complex[] |
ComplexArrayMath.divideElements(Complex[] array1,
Complex[] array2)
Return a new array that is the element-by-element division of
the first array by the second array.
|
static Complex |
ComplexArrayMath.dotProduct(Complex[] array1,
Complex[] array2)
Return a complex number that is the dot product of the two argument
arrays.
|
static Complex |
ComplexArrayMath.dotProduct(Complex[] array1,
Complex[] array2)
Return a complex number that is the dot product of the two argument
arrays.
|
static Complex |
Complex.exp(Complex z)
Return the exponential of the specified complex number,
or ez,
where
z is the argument. |
static Complex[] |
SignalProcessing.FFT(Complex[] x)
Return a new array of complex numbers which is the FFT
of an input array of complex numbers.
|
static Complex[] |
SignalProcessing.FFT(Complex[] x,
int order)
Return a new array of complex numbers which is the FFT
of an input array of complex numbers.
|
static Complex[] |
SignalProcessing.FFTComplexOut(Complex[] x)
Return a new array of Complex's which is the forward FFT
of an input array of Complex's.
|
static Complex[] |
SignalProcessing.FFTComplexOut(Complex[] x,
int order)
Return a new array of Complex's which is the forward FFT
of an input array of Complex's.
|
static double[] |
SignalProcessing.FFTImagOut(Complex[] x)
Return a new array of doubles which is the imaginary part of the
FFT of an input array of Complex's.
|
static double[] |
SignalProcessing.FFTImagOut(Complex[] x,
int order)
Return a new array of doubles which is the imaginary part of the
FFT of an input array of Complex's.
|
static double[] |
SignalProcessing.FFTRealOut(Complex[] x)
Return a new array of doubles which is the real part of the
forward FFT of an input array of Complex's.
|
static double[] |
SignalProcessing.FFTRealOut(Complex[] x,
int order)
Return a new array of doubles which is the real part of the
forward FFT of an input array of Complex's.
|
static Complex[] |
ComplexMatrixMath.fromMatrixToArray(Complex[][] matrix)
Return a new array that is filled with the contents of the matrix.
|
static Complex[] |
ComplexMatrixMath.fromMatrixToArray(Complex[][] matrix,
int maxRow,
int maxCol)
Return a new array that is filled with the contents of the matrix.
|
static Complex[] |
SignalProcessing.IFFT(Complex[] x)
Return a new array of complex numbers which is the inverse FFT
of an input array of complex numbers.
|
static Complex[] |
SignalProcessing.IFFT(Complex[] x,
int order)
Return a new array of complex numbers which is the inverse FFT
of an input array of complex numbers.
|
static Complex[] |
SignalProcessing.IFFTComplexOut(Complex[] x)
Return a new array of Complex's which is the inverse FFT
of an input array of Complex's.
|
static Complex[] |
SignalProcessing.IFFTComplexOut(Complex[] x,
int order)
Return a new array of Complex's which is the forward FFT
of an input array of Complex's.
|
static double[] |
SignalProcessing.IFFTRealOut(Complex[] x)
Return a new array of doubles which is the real part of the inverse
FFT of an input array of Complex's.
|
static double[] |
SignalProcessing.IFFTRealOut(Complex[] x,
int order)
Return a new array of doubles which is the real part of the inverse
FFT of an input array of Complex's.
|
static double |
Complex.imag(Complex z)
Return the imaginary part of the specified complex number.
|
static double[] |
ComplexArrayMath.imagParts(Complex[] x)
Return a new array of doubles with the imaginary parts of the array of
complex numbers.
|
static double[][] |
ComplexMatrixMath.imagParts(Complex[][] matrix)
Return a new matrix that is formed by taking the imaginary parts of the
complex numbers in the argument matrix.
|
static Complex[][] |
ComplexMatrixMath.inverse(Complex[][] A)
Return a new matrix that is constructed by inverting the input
matrix.
|
boolean |
Complex.isCloseTo(Complex z)
Return true if the distance between this complex number and
the argument is less than or equal to EPSILON.
|
boolean |
Complex.isCloseTo(Complex z,
double distance)
Return true if the distance between this complex number and
the first argument is less than or equal to the second argument.
|
static boolean |
Complex.isInfinite(Complex z)
Return true if either the real or imaginary part of the given
complex number is infinite.
|
static boolean |
Complex.isNaN(Complex z)
Return true if either the real or imaginary part of the given
Complex number is NaN.
|
static double |
ComplexArrayMath.l2norm(Complex[] array)
Return a double that is the L2-norm of the array.
|
static double |
ComplexArrayMath.l2normSquared(Complex[] array)
Return a double that is the sum of the squared magnitudes of
the elements of array.
|
static Complex[] |
ComplexArrayMath.limit(Complex[] array,
Complex bottom,
Complex top)
Return a new array that is a copy of the first argument except
that the elements are limited to lie within the specified range.
|
static Complex[] |
ComplexArrayMath.limit(Complex[] array,
Complex bottom,
Complex top)
Return a new array that is a copy of the first argument except
that the elements are limited to lie within the specified range.
|
static Complex |
Complex.log(Complex z)
Return the natural logarithm of the specified complex
number.
|
static double |
Complex.magnitude(Complex z)
Return the magnitude or absolute value of the given complex number.
|
static double[] |
ComplexArrayMath.magnitude(Complex[] array)
Return a new array of doubles containing the magnitudes of the elements
of the specified array of complex numbers.
|
static double |
Complex.magnitudeSquared(Complex z)
Return the square of the magnitude of this complex number.
|
static void |
ComplexMatrixMath.matrixCopy(Complex[][] srcMatrix,
Complex[][] destMatrix)
Replace the first matrix argument elements with the values of
the second matrix argument.
|
static void |
ComplexMatrixMath.matrixCopy(Complex[][] srcMatrix,
Complex[][] destMatrix)
Replace the first matrix argument elements with the values of
the second matrix argument.
|
static void |
ComplexMatrixMath.matrixCopy(Complex[][] srcMatrix,
int srcRowStart,
int srcColStart,
Complex[][] destMatrix,
int destRowStart,
int destColStart,
int rowSpan,
int colSpan)
Replace the first matrix argument's values, in the specified row
and column range, with the second matrix argument's values, starting
from specified row and column of the second matrix.
|
static void |
ComplexMatrixMath.matrixCopy(Complex[][] srcMatrix,
int srcRowStart,
int srcColStart,
Complex[][] destMatrix,
int destRowStart,
int destColStart,
int rowSpan,
int colSpan)
Replace the first matrix argument's values, in the specified row
and column range, with the second matrix argument's values, starting
from specified row and column of the second matrix.
|
Complex |
Complex.multiply(Complex w)
Return a new complex number that is formed by multiplying this
complex number by the specified complex number.
|
static Complex[][] |
ComplexMatrixMath.multiply(Complex[][] matrix,
Complex z)
Return a new matrix that is constructed by multiplying the matrix
by a complex scaleFactor.
|
static Complex[][] |
ComplexMatrixMath.multiply(Complex[][] matrix,
Complex z)
Return a new matrix that is constructed by multiplying the matrix
by a complex scaleFactor.
|
static Complex[] |
ComplexMatrixMath.multiply(Complex[][] matrix,
Complex[] array)
Return a new array that is constructed from the argument by
pre-multiplying the array (treated as a row vector) by a matrix.
|
static Complex[] |
ComplexMatrixMath.multiply(Complex[][] matrix,
Complex[] array)
Return a new array that is constructed from the argument by
pre-multiplying the array (treated as a row vector) by a matrix.
|
static Complex[][] |
ComplexMatrixMath.multiply(Complex[][] matrix1,
Complex[][] matrix2)
Return a new matrix that is constructed from the argument by
multiplying the first matrix by the second one.
|
static Complex[][] |
ComplexMatrixMath.multiply(Complex[][] matrix1,
Complex[][] matrix2)
Return a new matrix that is constructed from the argument by
multiplying the first matrix by the second one.
|
static Complex[][] |
ComplexMatrixMath.multiply(Complex[][] matrix,
double scaleFactor)
Return a new matrix that is constructed by multiplying the matrix
by a real scaleFactor.
|
static Complex[] |
ComplexArrayMath.multiply(Complex[] array,
Complex factor)
Return a new array that is constructed from the argument by
multiplying each element in array by the second argument,
which is a complex number.
|
static Complex[] |
ComplexArrayMath.multiply(Complex[] array,
Complex factor)
Return a new array that is constructed from the argument by
multiplying each element in array by the second argument,
which is a complex number.
|
static Complex[] |
ComplexArrayMath.multiply(Complex[] array1,
Complex[] array2)
Return a new array that is the element-by-element multiplication of
the two input arrays.
|
static Complex[] |
ComplexArrayMath.multiply(Complex[] array1,
Complex[] array2)
Return a new array that is the element-by-element multiplication of
the two input arrays.
|
static Complex[] |
ComplexMatrixMath.multiply(Complex[] array,
Complex[][] matrix)
Return a new array that is constructed from the argument by
post-multiplying the matrix by an array (treated as a row vector).
|
static Complex[] |
ComplexMatrixMath.multiply(Complex[] array,
Complex[][] matrix)
Return a new array that is constructed from the argument by
post-multiplying the matrix by an array (treated as a row vector).
|
static Complex[][] |
ComplexMatrixMath.multiplyElements(Complex[][] matrix1,
Complex[][] matrix2)
Return a new matrix that is constructed by element by element
multiplication of the two matrix arguments.
|
static Complex[][] |
ComplexMatrixMath.multiplyElements(Complex[][] matrix1,
Complex[][] matrix2)
Return a new matrix that is constructed by element by element
multiplication of the two matrix arguments.
|
static Complex[] |
ComplexArrayMath.negative(Complex[] array)
Return a new array that is the formed from the additive inverse of each
element of the input array (-array[i]).
|
static Complex[][] |
ComplexMatrixMath.negative(Complex[][] matrix)
Return a new matrix that is the additive inverse of the
argument matrix.
|
Complex |
ComplexUnaryOperation.operate(Complex operand)
Operate on the operand, returning a value of the same type.
|
Complex |
ComplexBinaryOperation.operate(Complex leftOperand,
Complex rightOperand)
Operate on the operands, returning a value of the same
type.
|
static Complex[][] |
ComplexMatrixMath.orthogonalizeColumns(Complex[][] matrix)
Return a new matrix that is formed by orthogonalizing the
columns of the input matrix (the column vectors are
orthogonal).
|
static Complex[][] |
ComplexMatrixMath.orthogonalizeRows(Complex[][] matrix)
Return a new matrix that is formed by orthogonalizing the rows of the
input matrix (the row vectors are orthogonal).
|
static Complex[][] |
ComplexMatrixMath.orthonormalizeColumns(Complex[][] matrix)
Return a new matrix that is formed by orthonormalizing the
columns of the input matrix (the column vectors are orthogonal
and have norm 1).
|
static Complex[][] |
ComplexMatrixMath.orthonormalizeRows(Complex[][] matrix)
Return a new matrix that is formed by orthonormalizing the
rows of the input matrix (the row vectors are orthogonal and
have norm 1).
|
static Complex[] |
ComplexArrayMath.padMiddle(Complex[] array,
int newLength)
Return a new array of Complex numbers that is formed by padding the
middle of the array with 0's.
|
static double[] |
ComplexArrayMath.phase(Complex[] array)
Return a new array containing the angles of the elements of the
specified complex array.
|
static Complex[] |
SignalProcessing.poleZeroToFrequency(Complex[] poles,
Complex[] zeros,
Complex gain,
int numSteps)
Given an array of pole locations, an array of zero locations, and a
gain term, return frequency response specified by these.
|
static Complex[] |
SignalProcessing.poleZeroToFrequency(Complex[] poles,
Complex[] zeros,
Complex gain,
int numSteps)
Given an array of pole locations, an array of zero locations, and a
gain term, return frequency response specified by these.
|
static Complex[] |
SignalProcessing.poleZeroToFrequency(Complex[] poles,
Complex[] zeros,
Complex gain,
int numSteps)
Given an array of pole locations, an array of zero locations, and a
gain term, return frequency response specified by these.
|
static Complex[] |
ComplexArrayMath.polynomial(Complex[] roots)
Given the roots of a polynomial, return a polynomial that has
has such roots.
|
Complex |
Complex.pow(Complex y)
Return zy
where z is this complex number and y is the
argument, a Complex.
|
static Complex[] |
ComplexArrayMath.pow(Complex[] array,
double exponent)
Return a new array of complex numbers that is formed by raising each
element to the specified exponent, a double.
|
static Complex |
Complex.pow(Complex z,
Complex y)
Return a new complex number with value z y
where z is the first argument and y is the second
argument.
|
static Complex |
Complex.pow(Complex z,
double y)
Return a new complex number with value z y
where z is the first argument and y is the second
argument.
|
static Complex |
Complex.pow(double z,
Complex y)
Return a new complex number with value z y
where z is the first argument and y is the second
argument.
|
static Complex |
ComplexArrayMath.product(Complex[] array)
Return the product of the elements in the array.
|
static double |
Complex.real(Complex z)
Return the real part of the specified complex number.
|
static double[] |
ComplexArrayMath.realParts(Complex[] x)
Return a new array of doubles that includes the real
parts of the array of complex numbers.
|
static double[][] |
ComplexMatrixMath.realParts(Complex[][] matrix)
Return a new matrix that is formed by taking the real parts of the
complex numbers in the argument matrix.
|
static Complex |
Complex.reciprocal(Complex z)
Return the reciprocal of this complex number.
|
static Complex[] |
ComplexArrayMath.resize(Complex[] array,
int newLength)
Return a new array of length newLength that is formed by
either truncating or padding the input array.
|
static Complex[] |
ComplexArrayMath.resize(Complex[] array,
int newLength,
int startIdx)
Return a new array of length newLength that is formed by
either truncating or padding the input array.
|
static Complex[] |
Complex.roots(Complex z,
int n)
Return the nth roots of the given complex number in an
array.
|
static Complex[] |
ComplexArrayMath.scale(Complex[] array,
Complex factor)
Return a new array that is constructed from the argument by
scaling each element in array by factor, which is a
complex number.
|
static Complex[] |
ComplexArrayMath.scale(Complex[] array,
Complex factor)
Return a new array that is constructed from the argument by
scaling each element in array by factor, which is a
complex number.
|
static Complex[] |
ComplexArrayMath.scale(Complex[] array,
double factor)
Return a new array that is constructed from the argument by
scaling each element in the array by factor, which is a
double.
|
static Complex |
Complex.sec(Complex z)
Return a new complex number with value equal to the secant
of the given complex number.
|
static Complex |
Complex.sin(Complex z)
Return a new complex number with value equal to the sine
of the given complex number.
|
static Complex |
Complex.sinh(Complex z)
Return a new complex number with value equal to the hyperbolic sine
of this complex number.
|
static Complex |
Complex.sqrt(Complex z)
Return a new complex number with its value equal to the
the square root of the specified complex number.
|
Complex |
Complex.subtract(Complex w)
Return a new complex number formed by subtracting the specified
complex number from this complex number.
|
static Complex[][] |
ComplexMatrixMath.subtract(Complex[][] matrix1,
Complex[][] matrix2)
Return a new matrix that is constructed from the argument by
subtracting the second matrix from the first one.
|
static Complex[][] |
ComplexMatrixMath.subtract(Complex[][] matrix1,
Complex[][] matrix2)
Return a new matrix that is constructed from the argument by
subtracting the second matrix from the first one.
|
static Complex[] |
ComplexArrayMath.subtract(Complex[] array,
Complex z)
Return a new array that is constructed by subtracting the complex
number z from every element in the given array.
|
static Complex[] |
ComplexArrayMath.subtract(Complex[] array,
Complex z)
Return a new array that is constructed by subtracting the complex
number z from every element in the given array.
|
static Complex[] |
ComplexArrayMath.subtract(Complex[] array1,
Complex[] array2)
Return a new array that is the element-by-element
subtraction of the second array from the first array.
|
static Complex[] |
ComplexArrayMath.subtract(Complex[] array1,
Complex[] array2)
Return a new array that is the element-by-element
subtraction of the second array from the first array.
|
static Complex |
ComplexMatrixMath.sum(Complex[][] matrix)
Return the sum of the elements of a matrix.
|
static Complex |
Complex.tan(Complex z)
Return a new complex number with value equal to the tangent
of the given complex number.
|
static Complex |
Complex.tanh(Complex z)
Return a new complex number with value equal to the hyperbolic tangent
of the given complex number.
|
static Complex[][] |
ComplexMatrixMath.toMatrixFromArray(Complex[] array,
int rows,
int cols)
Return a new matrix of complex numbers that is initialized
from a 1-D array.
|
static java.lang.String |
Complex.toString(Complex value)
Return a string representation of the given Complex.
|
static java.lang.String |
ComplexArrayMath.toString(Complex[] array)
Return a new String representing the array, formatted as
in Java array initializers.
|
static java.lang.String |
ComplexMatrixMath.toString(Complex[][] matrix)
Return a new String representing the matrix, formatted as
in Java array initializers.
|
static java.lang.String |
ComplexMatrixMath.toString(Complex[][] matrix,
java.lang.String elementDelimiter,
java.lang.String matrixBegin,
java.lang.String matrixEnd,
java.lang.String vectorBegin,
java.lang.String vectorDelimiter,
java.lang.String vectorEnd)
Return a new String representing the matrix, formatted as
specified by the ArrayStringFormat argument.
|
static java.lang.String |
ComplexArrayMath.toString(Complex[] array,
java.lang.String elementDelimiter,
java.lang.String vectorBegin,
java.lang.String vectorEnd)
Return a new String representing the array, formatted
specified starting with vectorBegin, where each
successive element is separated by elementDelimiter
and ending with vectorEnd.
|
static Complex |
ComplexMatrixMath.trace(Complex[][] matrix)
Return the trace of a square matrix, which is the sum of the
diagonal entries A11 + A22 + ... + Ann
Throw an IllegalArgumentException if the matrix is not square.
|
static Complex[][] |
ComplexMatrixMath.transpose(Complex[][] matrix)
Return a new matrix that is constructed by transposing the input
matrix.
|
static boolean |
ComplexMatrixMath.within(Complex[][] matrix1,
Complex[][] matrix2,
Complex maxError)
Return true if all the distances between corresponding elements in
matrix1 and matrix2 are all less than or equal to
the magnitude of maxError.
|
static boolean |
ComplexMatrixMath.within(Complex[][] matrix1,
Complex[][] matrix2,
Complex maxError)
Return true if all the distances between corresponding elements in
matrix1 and matrix2 are all less than or equal to
the magnitude of maxError.
|
static boolean |
ComplexMatrixMath.within(Complex[][] matrix1,
Complex[][] matrix2,
Complex maxError)
Return true if all the distances between corresponding elements in
matrix1 and matrix2 are all less than or equal to
the magnitude of maxError.
|
static boolean |
ComplexMatrixMath.within(Complex[][] matrix1,
Complex[][] matrix2,
Complex[][] maxError)
Return true if all the distances between corresponding elements in
matrix1 and matrix2 are all less than or equal to
the magnitude of the corresponding element in maxError.
|
static boolean |
ComplexMatrixMath.within(Complex[][] matrix1,
Complex[][] matrix2,
Complex[][] maxError)
Return true if all the distances between corresponding elements in
matrix1 and matrix2 are all less than or equal to
the magnitude of the corresponding element in maxError.
|
static boolean |
ComplexMatrixMath.within(Complex[][] matrix1,
Complex[][] matrix2,
Complex[][] maxError)
Return true if all the distances between corresponding elements in
matrix1 and matrix2 are all less than or equal to
the magnitude of the corresponding element in maxError.
|
static boolean |
ComplexMatrixMath.within(Complex[][] matrix1,
Complex[][] matrix2,
double maxError)
Return true if all the distances between corresponding
elements in matrix1 and matrix2 are all less
than or equal to the magnitude of maxError.
|
static boolean |
ComplexMatrixMath.within(Complex[][] matrix1,
Complex[][] matrix2,
double maxError)
Return true if all the distances between corresponding
elements in matrix1 and matrix2 are all less
than or equal to the magnitude of maxError.
|
static boolean |
ComplexMatrixMath.within(Complex[][] matrix1,
Complex[][] matrix2,
double[][] maxError)
Return true if all the distances between corresponding
elements in matrix1 and matrix2 are all less
than or equal to corresponding elements in maxError.
|
static boolean |
ComplexMatrixMath.within(Complex[][] matrix1,
Complex[][] matrix2,
double[][] maxError)
Return true if all the distances between corresponding
elements in matrix1 and matrix2 are all less
than or equal to corresponding elements in maxError.
|
static boolean |
ComplexArrayMath.within(Complex[] array1,
Complex[] array2,
Complex maxError)
Return true if all the distances between corresponding elements
array1 and array2 are all less than or equal to
the magnitude of maxError.
|
static boolean |
ComplexArrayMath.within(Complex[] array1,
Complex[] array2,
Complex maxError)
Return true if all the distances between corresponding elements
array1 and array2 are all less than or equal to
the magnitude of maxError.
|
static boolean |
ComplexArrayMath.within(Complex[] array1,
Complex[] array2,
Complex maxError)
Return true if all the distances between corresponding elements
array1 and array2 are all less than or equal to
the magnitude of maxError.
|
static boolean |
ComplexArrayMath.within(Complex[] array1,
Complex[] array2,
Complex[] maxError)
Return true if all the distances between corresponding elements
array1 and array2 are all less than or equal to
the magnitudes of the corresponding elements in maxError.
|
static boolean |
ComplexArrayMath.within(Complex[] array1,
Complex[] array2,
Complex[] maxError)
Return true if all the distances between corresponding elements
array1 and array2 are all less than or equal to
the magnitudes of the corresponding elements in maxError.
|
static boolean |
ComplexArrayMath.within(Complex[] array1,
Complex[] array2,
Complex[] maxError)
Return true if all the distances between corresponding elements
array1 and array2 are all less than or equal to
the magnitudes of the corresponding elements in maxError.
|
static boolean |
ComplexArrayMath.within(Complex[] array1,
Complex[] array2,
double maxError)
Return true if all the distances between corresponding elements
array1 and array2 are all less than or equal to
maxError.
|
static boolean |
ComplexArrayMath.within(Complex[] array1,
Complex[] array2,
double maxError)
Return true if all the distances between corresponding elements
array1 and array2 are all less than or equal to
maxError.
|
static boolean |
ComplexArrayMath.within(Complex[] array1,
Complex[] array2,
double[] maxError)
Return true if all the distances between corresponding elements
array1 and array2 are all less than or equal to
the corresponding elements in maxError.
|
static boolean |
ComplexArrayMath.within(Complex[] array1,
Complex[] array2,
double[] maxError)
Return true if all the distances between corresponding elements
array1 and array2 are all less than or equal to
the corresponding elements in maxError.
|
Modifier and Type | Method and Description |
---|---|
Complex |
TestComplexUnaryOperation.operate(Complex operand)
Operate on the operand, returning a value of the same type.
|
Complex |
TestComplexBinaryOperation.operate(Complex leftOperand,
Complex rightOperand)
Operate on the operands, returning a value of the same
type.
|
Modifier and Type | Method and Description |
---|---|
Complex |
TestComplexUnaryOperation.operate(Complex operand)
Operate on the operand, returning a value of the same type.
|
Complex |
TestComplexBinaryOperation.operate(Complex leftOperand,
Complex rightOperand)
Operate on the operands, returning a value of the same
type.
|