| Modifier and Type | Method | Description |
|---|---|---|
static double[] |
abs(Complex[] c) |
Returns
double[] containing absolute values (magnitudes) of a
Complex[] array. |
static double[] |
arg(Complex[] c) |
Returns
double[] containing arguments (phase angles) of a
Complex[] array. |
static double[] |
complex2Imaginary(Complex[] c) |
Converts imaginary part of a
Complex[] array to a
double[] array. |
static double[][] |
complex2Imaginary(Complex[][] c) |
Converts imaginary component of a 2D
Complex[][] array to a 2D
double[][] array. |
static double[][][] |
complex2Imaginary(Complex[][][] c) |
Converts imaginary component of a 3D
Complex[][][] array to a 3D
double[][][] array. |
static double[] |
complex2Imaginary(Complex[] c,
int start,
int end) |
Converts imaginary part of
Complex[] array to a double[]
array for the range start - end. |
static double[] |
complex2Imaginary(Complex[] c,
int start,
int end,
int increment) |
Converts imaginary part of a
Complex[] array to a
double[] array for the range start - end by
increment. |
static double[] |
complex2Imaginary(Complex[] c,
IntegerSequence.Range range) |
Converts imaginary part of a
Complex[] array to a
double[] array for the IntegerSequence range. |
static float[] |
complex2ImaginaryFloat(Complex[] c) |
Converts imaginary component of a
Complex[] array to a
float[] array. |
static float[][] |
complex2ImaginaryFloat(Complex[][] c) |
Converts imaginary component of a 2D
Complex[][] array to a 2D
float[][] array. |
static float[][][] |
complex2ImaginaryFloat(Complex[][][] c) |
Converts imaginary component of a 3D
Complex[][][] array to a 3D
float[][][] array. |
static float[] |
complex2ImaginaryFloat(Complex[] c,
int start,
int end) |
Converts imaginary part of a
Complex[] array to a float[]
array for the range start - end. |
static float[] |
complex2ImaginaryFloat(Complex[] c,
int start,
int end,
int increment) |
Converts imaginary part of a
Complex[] array to a float[]
array for the range start - end by increment. |
static float[] |
complex2ImaginaryFloat(Complex[] c,
IntegerSequence.Range range) |
Converts imaginary part of a
Complex[] array to a float[]
array for the IntegerSequence range. |
static double[] |
complex2Interleaved(Complex[] c) |
Converts a
Complex[] array to an interleaved complex
double[] array |
static double[][] |
complex2Interleaved(Complex[][] c) |
Converts a 2D
Complex[][] array to an interleaved complex
double[][] array. |
static double[][][] |
complex2Interleaved(Complex[][][] c) |
Converts a 3D
Complex[][][] array to an interleaved complex
double[][][] array. |
static double[][][] |
complex2Interleaved(Complex[][][] c,
int interleavedDim) |
Converts a 3D
Complex[][][] array to an interleaved complex
double[][][] array. |
static double[][] |
complex2Interleaved(Complex[][] c,
int interleavedDim) |
Converts a 2D
Complex[][] array to an interleaved complex
double[][] array. |
static double[] |
complex2Interleaved(Complex[] c,
int start,
int end) |
Converts a
Complex[] array to an interleaved complex
double[] array for the range start - end. |
static double[] |
complex2Interleaved(Complex[] c,
int start,
int end,
int increment) |
Converts a
Complex[] array to an interleaved complex
double[] array for the range start - end by
increment. |
static double[] |
complex2Interleaved(Complex[] c,
IntegerSequence.Range range) |
Converts a
Complex[] array to an interleaved complex
double[] array for the IntegerSequence range. |
static float[] |
complex2InterleavedFloat(Complex[] c) |
Converts a
Complex[] array to an interleaved complex
float[] array |
static float[][] |
complex2InterleavedFloat(Complex[][] c) |
Converts a 2D
Complex[][] array to an interleaved complex
float[][] array. |
static float[][][] |
complex2InterleavedFloat(Complex[][][] c) |
Converts a 3D
Complex[][][] array to an interleaved complex
float[][][] array. |
static float[][][] |
complex2InterleavedFloat(Complex[][][] c,
int interleavedDim) |
Converts a 3D
Complex[][][] array to an interleaved complex
float[][][] array. |
static float[][] |
complex2InterleavedFloat(Complex[][] c,
int interleavedDim) |
Converts a 2D
Complex[][] array to an interleaved complex
float[][] array. |
static float[] |
complex2InterleavedFloat(Complex[] c,
int start,
int end) |
Converts a
Complex[] array to an interleaved complex
float[] array for the range start - end. |
static float[] |
complex2InterleavedFloat(Complex[] c,
int start,
int end,
int increment) |
Converts a
Complex[] array to an interleaved complex
float[] array for the range start - end by
increment. |
static float[] |
complex2InterleavedFloat(Complex[] c,
IntegerSequence.Range range) |
Converts a
Complex[] array to an interleaved complex
float[] array for the IntegerSequence range. |
static double[] |
complex2Real(Complex[] c) |
Converts real component of
Complex[] array to a double[]
array. |
static double[][] |
complex2Real(Complex[][] c) |
Converts real component of a 2D
Complex[][] array to a 2D
double[][] array. |
static double[][][] |
complex2Real(Complex[][][] c) |
Converts real component of a 3D
Complex[][][] array to a 3D
double[][][] array. |
static double[] |
complex2Real(Complex[] c,
int start,
int end) |
Converts a
Complex[] array to a double[] array for the
range start - end. |
static double[] |
complex2Real(Complex[] c,
int start,
int end,
int increment) |
Converts a
Complex[] array to a double[] array for the
range start - end by increment. |
static double[] |
complex2Real(Complex[] c,
IntegerSequence.Range range) |
Converts a
Complex[] array to a double[] array for the
IntegerSequence range. |
static float[] |
complex2RealFloat(Complex[] c) |
Converts real component of
Complex[] array to a float[]
array. |
static float[][] |
complex2RealFloat(Complex[][] c) |
Converts real component of a 2D
Complex[][] array to a 2D
float[][] array. |
static float[][][] |
complex2RealFloat(Complex[][][] c) |
Converts real component of a 3D
Complex[][][] array to a 3D
float[][][] array. |
static float[] |
complex2RealFloat(Complex[] c,
int start,
int end) |
Converts a
Complex[] array to a float[] array for the
range start - end. |
static float[] |
complex2RealFloat(Complex[] c,
int start,
int end,
int increment) |
Converts a
Complex[] array to a float[] array for the
range start - end by increment. |
static float[] |
complex2RealFloat(Complex[] c,
IntegerSequence.Range range) |
Converts a
Complex[] array to a float[] array for the
IntegerSequence range. |
static Complex |
extractComplexFromImaginaryArray(double[] imaginary,
int index) |
Returns double from array
imaginary[] at entry index as a
Complex. |
static Complex |
extractComplexFromImaginaryArray(float[] imaginary,
int index) |
Returns float from array
imaginary[] at entry index as a
Complex. |
static Complex |
extractComplexFromInterleavedArray(double[] d,
int index) |
Returns a Complex object from interleaved
double[] array at entry
index. |
static Complex |
extractComplexFromInterleavedArray(float[] f,
int index) |
Returns a Complex object from interleaved
float[] array at entry
index. |
static Complex |
extractComplexFromRealArray(double[] real,
int index) |
Returns double from array
real[] at entry index as a
Complex. |
static Complex |
extractComplexFromRealArray(float[] real,
int index) |
Returns float from array
real[] at entry index as a
Complex. |
static float |
extractImaginaryFloatFromComplexArray(Complex[] complex,
int index) |
Returns imaginary component of array
Complex[] at entry
index as a float. |
static double |
extractImaginaryFromComplexArray(Complex[] complex,
int index) |
Returns imaginary component of Complex from array
Complex[] at
entry index as a double. |
static float[] |
extractInterleavedFloatFromComplexArray(Complex[] complex,
int index) |
Returns Complex object from array
Complex[] at entry
index as a size 2 float of the form {real, imag}. |
static double[] |
extractInterleavedFromComplexArray(Complex[] complex,
int index) |
Returns values of Complex object from array
Complex[] at entry
index as a size 2 double of the form {real, imag}. |
static float |
extractRealFloatFromComplexArray(Complex[] complex,
int index) |
Returns real component of array
Complex[] at entry index
as a float. |
static double |
extractRealFromComplexArray(Complex[] complex,
int index) |
Returns real component of Complex from array
Complex[] at entry
index as a double. |
static Complex[] |
imaginary2Complex(double[] imaginary) |
Converts a
double[] array to an imaginary Complex[]
array. |
static Complex[][] |
imaginary2Complex(double[][] d) |
Converts a 2D imaginary array
double[][] to a 2D
Complex[][] array. |
static Complex[][][] |
imaginary2Complex(double[][][] d) |
Converts a 3D imaginary array
double[][][] to a Complex[]
array. |
static Complex[] |
imaginary2Complex(double[] imaginary,
int start,
int end) |
Converts a
double[] array to an imaginary Complex[] array
for the range start - end. |
static Complex[] |
imaginary2Complex(double[] imaginary,
int start,
int end,
int increment) |
Converts a
double[] array to an imaginary Complex[] array
for the range start - end by increment. |
static Complex[] |
imaginary2Complex(double[] imaginary,
IntegerSequence.Range range) |
Converts a
double[] array to an imaginary Complex[] array
for the IntegerSequence range. |
static Complex[] |
imaginary2Complex(float[] imaginary) |
Converts a
float[] array to an imaginary Complex[] array. |
static Complex[] |
imaginary2Complex(float[] imaginary,
int start,
int end) |
Converts a
float[] array to an imaginary Complex[] array
for the range start - end. |
static Complex[] |
imaginary2Complex(float[] imaginary,
int start,
int end,
int increment) |
Converts a
float[] array to an imaginary Complex[] array
for the range start - end by increment. |
static Complex[] |
imaginary2Complex(float[] imaginary,
IntegerSequence.Range range) |
Converts a
float[] array to an imaginary Complex[] array
for the IntegerSequence range. |
static Complex[] |
initialize(Complex[] c) |
Initializes a
Complex[] array to zero, to avoid
NullPointerExceptions. |
static Complex[][] |
initialize(Complex[][] c) |
Initializes a
Complex[][] array to zero, to avoid
NullPointerExceptions. |
static Complex[][][] |
initialize(Complex[][][] c) |
Initializes a
Complex[][][] array to zero, to avoid
NullPointerExceptions. |
static Complex[] |
interleaved2Complex(double[] interleaved) |
Converts a complex interleaved
double[] array to a
Complex[] array |
static Complex[][] |
interleaved2Complex(double[][] d) |
Converts a 2D interleaved complex
double[][] array to a
Complex[][] array. |
static Complex[][][] |
interleaved2Complex(double[][][] d) |
Converts a 3D interleaved complex
double[][][] array to a
Complex[][][] array. |
static Complex[][][] |
interleaved2Complex(double[][][] d,
int interleavedDim) |
Converts a 3D interleaved complex
double[][][] array to a
Complex[][][] array. |
static Complex[][] |
interleaved2Complex(double[][] d,
int interleavedDim) |
Converts a 2D interleaved complex
double[][] array to a
Complex[][] array. |
static Complex[] |
interleaved2Complex(double[] interleaved,
int start,
int end) |
Converts a complex interleaved
double[] array to a
Complex[] array for the range start - end. |
static Complex[] |
interleaved2Complex(double[] interleaved,
int start,
int end,
int increment) |
Converts a complex interleaved
double[] array to a
Complex[] array for the range start - end by
increment. |
static Complex[] |
interleaved2Complex(double[] interleaved,
IntegerSequence.Range range) |
Converts a complex interleaved
double[] array to a
Complex[] array for the IntegerSequence range. |
static Complex[] |
interleaved2Complex(float[] interleaved) |
Converts a complex interleaved
float[] array to a
Complex[] array |
static Complex[][] |
interleaved2Complex(float[][] d) |
Converts a 2D interleaved complex
float[][] array to a
Complex[][] array. |
static Complex[][][] |
interleaved2Complex(float[][][] d) |
Converts a 3D interleaved complex
float[][][] array to a
Complex[] array. |
static Complex[][][] |
interleaved2Complex(float[][][] d,
int interleavedDim) |
Converts a 3D interleaved complex
float[][][] array to a
Complex[][][] array. |
static Complex[][] |
interleaved2Complex(float[][] d,
int interleavedDim) |
Converts a 2D interleaved complex
float[][] array to a
Complex[][] array. |
static Complex[] |
interleaved2Complex(float[] interleaved,
int start,
int end) |
Converts a complex interleaved
float[] array to a
Complex[] array for the range start - end. |
static Complex[] |
interleaved2Complex(float[] interleaved,
int start,
int end,
int increment) |
Converts a complex interleaved
float[] array to a
Complex[] array for the range start - end by
increment. |
static Complex[] |
interleaved2Complex(float[] interleaved,
IntegerSequence.Range range) |
Converts a complex interleaved
float[] array to a
Complex[] array for the IntegerSequence range. |
static Complex[][][] |
polar2Complex(double[][][] r,
double[][][] theta) |
Creates
Complex[][][] array given double[][][] arrays of
r and theta. |
static Complex[][] |
polar2Complex(double[][] r,
double[][] theta) |
Creates
Complex[][] array given double[][] arrays of r
and theta. |
static Complex[] |
polar2Complex(double[] r,
double[] theta) |
Creates
Complex[] array given double[] arrays of r and
theta. |
static Complex |
polar2Complex(double r,
double theta) |
Creates a complex number from the given polar representation.
|
static Complex[] |
real2Complex(double[] real) |
Converts a
double[] array to a Complex[] array. |
static Complex[][] |
real2Complex(double[][] d) |
Converts a 2D real
double[][] array to a 2D Complex[][]
array. |
static Complex[][][] |
real2Complex(double[][][] d) |
Converts a 3D real
double[][][] array to a Complex [][][]
array. |
static Complex[] |
real2Complex(double[] real,
int start,
int end) |
Converts a
double[] array to a Complex[] array for the
range start - end. |
static Complex[] |
real2Complex(double[] real,
int start,
int end,
int increment) |
Converts a
double[] array to a Complex[] array for the
range start - end by increment. |
static Complex[] |
real2Complex(double[] real,
IntegerSequence.Range range) |
Converts a
double[] array to a Complex[] array for the
IntegerSequence range. |
static Complex[] |
real2Complex(float[] real) |
Converts a
float[] array to a Complex[] array. |
static Complex[] |
real2Complex(float[] real,
int start,
int end) |
Converts a
float[] array to a Complex[] array for the
range start - end. |
static Complex[] |
real2Complex(float[] real,
int start,
int end,
int increment) |
Converts a
float[] array to a Complex[] array for the
range start - end by increment. |
static Complex[] |
real2Complex(float[] real,
IntegerSequence.Range range) |
Converts a
float[] array to a Complex[] array for the
IntegerSequence range. |
static Complex[][][] |
split2Complex(double[][][] real,
double[][][] imag) |
Converts a 3D split complex array
double[][][] r, double[][][] i
to a 3D Complex[][][] array. |
static Complex[][] |
split2Complex(double[][] real,
double[][] imag) |
Converts a 2D split complex array
double[][] r, double[][] i to a
2D Complex[][] array. |
static Complex[] |
split2Complex(double[] real,
double[] imag) |
Converts a split complex array
double[] r, double[] i to a
Complex[] array. |
static Complex[][][] |
split2Complex(float[][][] real,
float[][][] imag) |
Converts a 3D split complex array
float[][][] r, float[][][] i to
a 3D Complex[][][] array. |
static Complex[][] |
split2Complex(float[][] real,
float[][] imag) |
Converts a 2D split complex array
float[][] r, float[][] i to a
2D Complex[][] array. |
static Complex[] |
split2Complex(float[] real,
float[] imag) |
Converts a split complex array
float[] r, float[] i to a
Complex[] array. |
public static Complex polar2Complex(double r, double theta) throws MathIllegalArgumentException
If either r or theta is NaN, or theta is
infinite, Complex.NaN is returned.
If r is infinite and theta is finite, infinite or NaN
values may be returned in parts of the result, following the rules for
double arithmetic.
Examples:
polar2Complex(INFINITY, \(\pi\)) = INFINITY + INFINITY i
polar2Complex(INFINITY, 0) = INFINITY + NaN i
polar2Complex(INFINITY, \(-\frac{\pi}{4}\)) = INFINITY - INFINITY i
polar2Complex(INFINITY, \(5\frac{\pi}{4}\)) = -INFINITY - INFINITY i
r - the modulus of the complex number to createtheta - the argument of the complex number to createComplexMathIllegalArgumentException - if r is negative.public static Complex[] polar2Complex(double[] r, double[] theta) throws MathIllegalArgumentException
Complex[] array given double[] arrays of r and
theta.r - double[] of modulitheta - double[] of argumentsComplex[]MathIllegalArgumentException - if r is negative.public static Complex[][] polar2Complex(double[][] r, double[][] theta) throws MathIllegalArgumentException
Complex[][] array given double[][] arrays of r
and theta.r - double[] of modulitheta - double[] of argumentsComplex[][]MathIllegalArgumentException - if r is negative.public static Complex[][][] polar2Complex(double[][][] r, double[][][] theta) throws MathIllegalArgumentException
Complex[][][] array given double[][][] arrays of
r and theta.r - array of modulitheta - array of argumentsComplexMathIllegalArgumentException - if r is negative.public static Complex extractComplexFromRealArray(double[] real, int index)
real[] at entry index as a
Complex.real - array of real numbersindex - location in the arrayComplex.public static Complex extractComplexFromRealArray(float[] real, int index)
real[] at entry index as a
Complex.real - array of real numbersindex - location in the arrayComplex arraypublic static Complex extractComplexFromImaginaryArray(double[] imaginary, int index)
imaginary[] at entry index as a
Complex.imaginary - array of imaginary numbersindex - location in the arrayComplex arraypublic static Complex extractComplexFromImaginaryArray(float[] imaginary, int index)
imaginary[] at entry index as a
Complex.imaginary - array of imaginary numbersindex - location in the arrayComplex arraypublic static double extractRealFromComplexArray(Complex[] complex, int index)
Complex[] at entry
index as a double.complex - array of complex numbersindex - location in the arraydouble.public static float extractRealFloatFromComplexArray(Complex[] complex, int index)
Complex[] at entry index
as a float.complex - array of complex numbersindex - location in the arrayfloat.public static double extractImaginaryFromComplexArray(Complex[] complex, int index)
Complex[] at
entry index as a double.complex - array of complex numbersindex - location in the arraydouble.public static float extractImaginaryFloatFromComplexArray(Complex[] complex, int index)
Complex[] at entry
index as a float.complex - array of complex numbersindex - location in the arrayfloat.public static Complex extractComplexFromInterleavedArray(double[] d, int index)
double[] array at entry
index.d - array of interleaved complex numbers alternating real and imaginary valuesindex - location in the array This is the location by complex number, e.g. index number 5 in the array will return new Complex(d[10], d[11])Complex.public static Complex extractComplexFromInterleavedArray(float[] f, int index)
float[] array at entry
index.f - float array of interleaved complex numbers alternating real and imaginary valuesindex - location in the array This is the location by complex number, e.g. index number 5 in the float[] array will return new Complex(d[10], d[11])Complex.public static double[] extractInterleavedFromComplexArray(Complex[] complex, int index)
Complex[] at entry
index as a size 2 double of the form {real, imag}.complex - array of complex numbersindex - location in the arraypublic static float[] extractInterleavedFloatFromComplexArray(Complex[] complex, int index)
Complex[] at entry
index as a size 2 float of the form {real, imag}.complex - Complex arrayindex - location in the arrayfloat[].public static Complex[] real2Complex(double[] real, int start, int end)
double[] array to a Complex[] array for the
range start - end.real - array of real numbers to be converted to their Complex equivalentstart - start indexend - end indexComplex arraypublic static Complex[] real2Complex(float[] real, int start, int end)
float[] array to a Complex[] array for the
range start - end.real - array of real numbers to be converted to their Complex equivalentstart - start indexend - end indexComplex arraypublic static Complex[] real2Complex(double[] real, int start, int end, int increment)
double[] array to a Complex[] array for the
range start - end by increment.real - array of numbers to be converted to their Complex equivalentstart - start indexend - end indexincrement - range incrementComplex arraypublic static Complex[] real2Complex(float[] real, int start, int end, int increment)
float[] array to a Complex[] array for the
range start - end by increment.real - array of numbers to be converted to their Complex equivalentstart - start indexend - end indexincrement - range incrementComplex arraypublic static Complex[] real2Complex(double[] real, IntegerSequence.Range range)
double[] array to a Complex[] array for the
IntegerSequence range.real - array of numbers to be converted to their Complex equivalentrange - an Iterable<Integer> object returned by IntegerSequence.range()Complex arraypublic static Complex[] real2Complex(float[] real, IntegerSequence.Range range)
float[] array to a Complex[] array for the
IntegerSequence range.real - array of numbers to be converted to their Complex equivalentrange - an Iterable<Integer> object returned by IntegerSequence.range()Complex arraypublic static Complex[] real2Complex(double[] real)
double[] array to a Complex[] array.real - array of numbers to be converted to their Complex equivalentComplex arraypublic static Complex[] real2Complex(float[] real)
float[] array to a Complex[] array.real - array of numbers to be converted to their Complex equivalentComplex arraypublic static Complex[][] real2Complex(double[][] d)
double[][] array to a 2D Complex[][]
array.d - 2D arrayComplex arraypublic static Complex[][][] real2Complex(double[][][] d)
double[][][] array to a Complex [][][]
array.d - 3D complex interleaved arrayComplex arraypublic static double[] complex2Real(Complex[] c, int start, int end)
Complex[] array to a double[] array for the
range start - end.c - Complex arraystart - start indexend - end indexpublic static float[] complex2RealFloat(Complex[] c, int start, int end)
Complex[] array to a float[] array for the
range start - end.c - Complex arraystart - start indexend - end indexfloat[] array of the real componentpublic static double[] complex2Real(Complex[] c, int start, int end, int increment)
Complex[] array to a double[] array for the
range start - end by increment.c - Complex arraystart - start indexend - end indexincrement - range incrementpublic static float[] complex2RealFloat(Complex[] c, int start, int end, int increment)
Complex[] array to a float[] array for the
range start - end by increment.c - Complex arraystart - start indexend - end indexincrement - range incrementfloat[] array of the real componentpublic static double[] complex2Real(Complex[] c, IntegerSequence.Range range)
Complex[] array to a double[] array for the
IntegerSequence range.c - Complex arrayrange - an Iterable<Integer> object returned by IntegerSequence.range()public static float[] complex2RealFloat(Complex[] c, IntegerSequence.Range range)
Complex[] array to a float[] array for the
IntegerSequence range.c - Complex arrayrange - an Iterable<Integer> object returned by IntegerSequence.range()float[] array of the real componentpublic static double[] complex2Real(Complex[] c)
Complex[] array to a double[]
array.c - Complex arraypublic static float[] complex2RealFloat(Complex[] c)
Complex[] array to a float[]
array.c - Complex arrayfloat[] array of the real componentpublic static double[][] complex2Real(Complex[][] c)
Complex[][] array to a 2D
double[][] array.c - 2D Complex arraydouble[][] of real componentpublic static float[][] complex2RealFloat(Complex[][] c)
Complex[][] array to a 2D
float[][] array.c - 2D Complex arrayfloat[][] of real componentpublic static double[][][] complex2Real(Complex[][][] c)
Complex[][][] array to a 3D
double[][][] array.c - 3D complex interleaved arraypublic static float[][][] complex2RealFloat(Complex[][][] c)
Complex[][][] array to a 3D
float[][][] array.c - 3D Complex arrayfloat[][][] of real componentpublic static Complex[] imaginary2Complex(double[] imaginary, int start, int end)
double[] array to an imaginary Complex[] array
for the range start - end.imaginary - array of imaginary numbers to be converted to their Complex equivalentstart - start indexend - end indexComplex arraypublic static Complex[] imaginary2Complex(float[] imaginary, int start, int end)
float[] array to an imaginary Complex[] array
for the range start - end.imaginary - array of imaginary numbers to be converted to their Complex equivalentstart - start indexend - end indexComplex arraypublic static Complex[] imaginary2Complex(double[] imaginary, int start, int end, int increment)
double[] array to an imaginary Complex[] array
for the range start - end by increment.imaginary - array of numbers to be converted to their Complex equivalentstart - start indexend - end indexincrement - range incrementComplex arraypublic static Complex[] imaginary2Complex(float[] imaginary, int start, int end, int increment)
float[] array to an imaginary Complex[] array
for the range start - end by increment.imaginary - array of numbers to be converted to their Complex equivalentstart - start indexend - end indexincrement - range incrementComplex arraypublic static Complex[] imaginary2Complex(double[] imaginary, IntegerSequence.Range range)
double[] array to an imaginary Complex[] array
for the IntegerSequence range.imaginary - array of numbers to be converted to their Complex equivalentrange - an Iterable<Integer> object returned by IntegerSequence.range()Complex arraypublic static Complex[] imaginary2Complex(float[] imaginary, IntegerSequence.Range range)
float[] array to an imaginary Complex[] array
for the IntegerSequence range.imaginary - array of numbers to be converted to their Complex equivalentrange - an Iterable<Integer> object returned by IntegerSequence.range()Complex arraypublic static Complex[] imaginary2Complex(double[] imaginary)
double[] array to an imaginary Complex[]
array.imaginary - array of numbers to be converted to their Complex equivalentComplex arraypublic static Complex[] imaginary2Complex(float[] imaginary)
float[] array to an imaginary Complex[] array.imaginary - array of numbers to be converted to their Complex equivalentComplex arraypublic static Complex[][] imaginary2Complex(double[][] d)
double[][] to a 2D
Complex[][] array.d - 2D arrayComplex arraypublic static Complex[][][] imaginary2Complex(double[][][] d)
double[][][] to a Complex[]
array.d - 3D complex imaginary arrayComplex arraypublic static double[] complex2Imaginary(Complex[] c, int start, int end)
Complex[] array to a double[]
array for the range start - end.c - Complex array.start - start indexend - end indexpublic static float[] complex2ImaginaryFloat(Complex[] c, int start, int end)
Complex[] array to a float[]
array for the range start - end.c - Complex arraystart - start indexend - end indexfloat[] array of the imaginary componentpublic static double[] complex2Imaginary(Complex[] c, int start, int end, int increment)
Complex[] array to a
double[] array for the range start - end by
increment.c - Complex array.start - start indexend - end indexincrement - range incrementpublic static float[] complex2ImaginaryFloat(Complex[] c, int start, int end, int increment)
Complex[] array to a float[]
array for the range start - end by increment.c - Complex array.start - start indexend - end indexincrement - range incrementfloat[] array of the imaginary componentpublic static double[] complex2Imaginary(Complex[] c, IntegerSequence.Range range)
Complex[] array to a
double[] array for the IntegerSequence range.c - Complex array.range - an Iterable<Integer> object returned by IntegerSequence.range()public static float[] complex2ImaginaryFloat(Complex[] c, IntegerSequence.Range range)
Complex[] array to a float[]
array for the IntegerSequence range.c - Complex array.range - an Iterable<Integer> object returned by IntegerSequence.range()float[] array of the imaginary componentpublic static double[] complex2Imaginary(Complex[] c)
Complex[] array to a
double[] array.c - Complex array.public static float[] complex2ImaginaryFloat(Complex[] c)
Complex[] array to a
float[] array.c - Complex array.float[] array of the imaginary componentpublic static double[][] complex2Imaginary(Complex[][] c)
Complex[][] array to a 2D
double[][] array.c - 2D Complex arraydouble[][] of imaginary componentpublic static float[][] complex2ImaginaryFloat(Complex[][] c)
Complex[][] array to a 2D
float[][] array.c - 2D Complex arrayfloat[][] of imaginary componentpublic static double[][][] complex2Imaginary(Complex[][][] c)
Complex[][][] array to a 3D
double[][][] array.c - 3D complex interleaved arrayComplex arraypublic static float[][][] complex2ImaginaryFloat(Complex[][][] c)
Complex[][][] array to a 3D
float[][][] array.c - 3D Complex arrayfloat[][][] of imaginary componentpublic static Complex[] interleaved2Complex(double[] interleaved, int start, int end)
double[] array to a
Complex[] array for the range start - end.interleaved - array of numbers to be converted to their Complex equivalentstart - start indexend - end indexComplex arraypublic static Complex[] interleaved2Complex(float[] interleaved, int start, int end)
float[] array to a
Complex[] array for the range start - end.interleaved - float array of numbers to be converted to their Complex equivalentstart - start indexend - end indexComplex arraypublic static Complex[] interleaved2Complex(double[] interleaved, int start, int end, int increment)
double[] array to a
Complex[] array for the range start - end by
increment.interleaved - array of numbers to be converted to their Complex equivalentstart - start indexend - end indexincrement - range incrementComplex arraypublic static Complex[] interleaved2Complex(float[] interleaved, int start, int end, int increment)
float[] array to a
Complex[] array for the range start - end by
increment.interleaved - float array of numbers to be converted to their Complex equivalentstart - start indexend - end indexincrement - range incrementComplex arraypublic static Complex[] interleaved2Complex(double[] interleaved, IntegerSequence.Range range)
double[] array to a
Complex[] array for the IntegerSequence range.interleaved - array of numbers to be converted to their Complex equivalentrange - an Iterable<Integer> object returned by IntegerSequence.range()Complex arraypublic static Complex[] interleaved2Complex(float[] interleaved, IntegerSequence.Range range)
float[] array to a
Complex[] array for the IntegerSequence range.interleaved - float array of numbers to be converted to their Complex equivalentrange - an Iterable<Integer> object returned by IntegerSequence.range()Complex arraypublic static Complex[] interleaved2Complex(double[] interleaved)
double[] array to a
Complex[] arrayinterleaved - array of numbers to be converted to their Complex equivalentComplex arraypublic static Complex[] interleaved2Complex(float[] interleaved)
float[] array to a
Complex[] arrayinterleaved - float[] array of numbers to be converted to their Complex equivalentComplex arraypublic static double[] complex2Interleaved(Complex[] c, int start, int end)
Complex[] array to an interleaved complex
double[] array for the range start - end.c - Complex arraystart - start indexend - end indexpublic static float[] complex2InterleavedFloat(Complex[] c, int start, int end)
Complex[] array to an interleaved complex
float[] array for the range start - end.c - Complex arraystart - start indexend - end indexfloat[] alternating real and
imaginary valuespublic static double[] complex2Interleaved(Complex[] c, int start, int end, int increment)
Complex[] array to an interleaved complex
double[] array for the range start - end by
increment.c - Complex arraystart - start indexend - end indexincrement - range incrementpublic static float[] complex2InterleavedFloat(Complex[] c, int start, int end, int increment)
Complex[] array to an interleaved complex
float[] array for the range start - end by
increment.c - Complex arraystart - start indexend - end indexincrement - range incrementfloat[] alternating real and
imaginary valuespublic static double[] complex2Interleaved(Complex[] c, IntegerSequence.Range range)
Complex[] array to an interleaved complex
double[] array for the IntegerSequence range.c - Complex arrayrange - an Iterable<Integer> object returned by IntegerSequence.range()public static float[] complex2InterleavedFloat(Complex[] c, IntegerSequence.Range range)
Complex[] array to an interleaved complex
float[] array for the IntegerSequence range.c - Complex arrayrange - an Iterable<Integer> object returned by IntegerSequence.range()float[] alternating real and
imaginary valuespublic static double[] complex2Interleaved(Complex[] c)
Complex[] array to an interleaved complex
double[] arrayc - Complex arraypublic static float[] complex2InterleavedFloat(Complex[] c)
Complex[] array to an interleaved complex
float[] arrayc - Complex arrayfloat[] alternating real and
imaginary valuespublic static double[][] complex2Interleaved(Complex[][] c, int interleavedDim)
Complex[][] array to an interleaved complex
double[][] array.c - 2D Complex arrayinterleavedDim - Depth level of the array to interleavepublic static double[][] complex2Interleaved(Complex[][] c)
Complex[][] array to an interleaved complex
double[][] array. The second depth level of the array is assumed
to be interleaved.c - 2D Complex arraypublic static double[][][] complex2Interleaved(Complex[][][] c, int interleavedDim)
Complex[][][] array to an interleaved complex
double[][][] array.c - 3D Complex arrayinterleavedDim - Depth level of the array to interleavepublic static double[][][] complex2Interleaved(Complex[][][] c)
Complex[][][] array to an interleaved complex
double[][][] array. The third depth level of the array is
interleaved.c - 3D Complex arraypublic static float[][] complex2InterleavedFloat(Complex[][] c, int interleavedDim)
Complex[][] array to an interleaved complex
float[][] array.c - 2D Complex arrayinterleavedDim - Depth level of the array to interleavefloat[][] alternating real and
imaginary valuespublic static float[][] complex2InterleavedFloat(Complex[][] c)
Complex[][] array to an interleaved complex
float[][] array. The second depth level of the array is assumed
to be interleaved.c - 2D Complex arrayfloat[][] alternating real and
imaginary valuespublic static float[][][] complex2InterleavedFloat(Complex[][][] c, int interleavedDim)
Complex[][][] array to an interleaved complex
float[][][] array.c - 3D Complex arrayinterleavedDim - Depth level of the array to interleavefloat[][][] alternating real and
imaginary valuespublic static float[][][] complex2InterleavedFloat(Complex[][][] c)
Complex[][][] array to an interleaved complex
float[][][] array. The third depth level of the array is
interleaved.c - 2D Complex arrayfloat[][][] alternating real and
imaginary valuespublic static Complex[][] interleaved2Complex(double[][] d, int interleavedDim)
double[][] array to a
Complex[][] array.d - 2D complex interleaved arrayinterleavedDim - Depth level of the array to interleaveComplex arraypublic static Complex[][] interleaved2Complex(double[][] d)
double[][] array to a
Complex[][] array. The second depth level of the array is assumed
to be interleaved.d - 2D complex interleaved arrayComplex arraypublic static Complex[][][] interleaved2Complex(double[][][] d, int interleavedDim)
double[][][] array to a
Complex[][][] array.d - 3D complex interleaved arrayinterleavedDim - Depth level of the array to interleaveComplex arraypublic static Complex[][][] interleaved2Complex(double[][][] d)
double[][][] array to a
Complex[][][] array. The third depth level is assumed to be
interleaved.d - 3D complex interleaved arrayComplex arraypublic static Complex[][] interleaved2Complex(float[][] d, int interleavedDim)
float[][] array to a
Complex[][] array.d - 2D complex interleaved float arrayinterleavedDim - Depth level of the array to interleaveComplex arraypublic static Complex[][] interleaved2Complex(float[][] d)
float[][] array to a
Complex[][] array. The second depth level of the array is assumed
to be interleaved.d - 2D complex interleaved float arrayComplex arraypublic static Complex[][][] interleaved2Complex(float[][][] d, int interleavedDim)
float[][][] array to a
Complex[][][] array.d - 3D complex interleaved float arrayinterleavedDim - Depth level of the array to interleaveComplex arraypublic static Complex[][][] interleaved2Complex(float[][][] d)
float[][][] array to a
Complex[] array. The third depth level of the array is assumed to
be interleaved.d - 3D complex interleaved float arrayComplex arraypublic static Complex[] split2Complex(double[] real, double[] imag)
double[] r, double[] i to a
Complex[] array.real - real componentimag - imaginary componentComplex arraypublic static Complex[][] split2Complex(double[][] real, double[][] imag)
double[][] r, double[][] i to a
2D Complex[][] array.real - real componentimag - imaginary componentComplex arraypublic static Complex[][][] split2Complex(double[][][] real, double[][][] imag)
double[][][] r, double[][][] i
to a 3D Complex[][][] array.real - real componentimag - imaginary componentComplex arraypublic static Complex[] split2Complex(float[] real, float[] imag)
float[] r, float[] i to a
Complex[] array.real - real componentimag - imaginary componentComplex arraypublic static Complex[][] split2Complex(float[][] real, float[][] imag)
float[][] r, float[][] i to a
2D Complex[][] array.real - real componentimag - imaginary componentComplex arraypublic static Complex[][][] split2Complex(float[][][] real, float[][][] imag)
float[][][] r, float[][][] i to
a 3D Complex[][][] array.real - real componentimag - imaginary componentComplex arraypublic static Complex[] initialize(Complex[] c)
Complex[] array to zero, to avoid
NullPointerExceptions.c - Complex arraypublic static Complex[][] initialize(Complex[][] c)
Complex[][] array to zero, to avoid
NullPointerExceptions.c - Complex arraypublic static Complex[][][] initialize(Complex[][][] c)
Complex[][][] array to zero, to avoid
NullPointerExceptions.c - Complex arraypublic static double[] abs(Complex[] c)
double[] containing absolute values (magnitudes) of a
Complex[] array.c - Complex arraydouble[]public static double[] arg(Complex[] c)
double[] containing arguments (phase angles) of a
Complex[] array.c - Complex arraydouble[] arrayCopyright © 2003–2017 The Apache Software Foundation. All rights reserved.