public class ComplexArray
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ComplexArray.ComplexArrayDoubleDouble
Implements ComplexArray that is backed by two float arrays.
|
static class |
ComplexArray.ComplexArrayFloatFloat
Implements ComplexArray that is backed by two float arrays.
|
static interface |
ComplexArray.Double
ComplexArray that is accessed by doubles
|
static interface |
ComplexArray.Float
A complex array that is accessed by floats
|
Constructor and Description |
---|
ComplexArray() |
Modifier and Type | Method and Description |
---|---|
static double[] |
magnitude(ComplexArray.Double array)
returns the magnitudes of each element in an array
|
static double |
magnitude(ComplexArray.Double array,
int i)
returns the magnitude of ah element in an array
|
static double |
magnitude2(ComplexArray.Double array,
int i)
returns the magnitude of ah element in an array
|
static ComplexArray.Double |
newArray(double[] real)
Creates a new ComplexArray from an array of real numbers.
|
static ComplexArray.Double |
newArray(double[] real,
double[] imag)
Creates a new ComplexArray from an array representing real numbers and
an array representing the corresponding complex components.
|
static ComplexArray.Float |
newArray(float[] real)
Creates a new ComplexArray from an array of real numbers.
|
static ComplexArray.Float |
newArray(float[] real,
float[] imag)
Creates a new ComplexArray from an array representing real numbers and
an array representing the corresponding complex components.
|
static ComplexArray.Double |
newArrayCopy(double[] real)
Creates a new ComplexArray from a float array representing real numbers, but
copies the original array so that it is not modified.
|
static double[] |
realPart(ComplexArray.Double array)
returns the real parts of each element in an array.
|
static java.lang.String |
toString(ComplexArray.Double array)
converts a ComplexArray into an array for debugging purposes.
|
static java.lang.String |
toString(ComplexArray.Float array)
converts a ComplexArray into an array for debugging purposes.
|
public static ComplexArray.Double newArray(double[] real)
public static ComplexArray.Double newArrayCopy(double[] real)
public static ComplexArray.Double newArray(double[] real, double[] imag)
public static ComplexArray.Float newArray(float[] real)
public static ComplexArray.Float newArray(float[] real, float[] imag)
public static java.lang.String toString(ComplexArray.Float array)
public static java.lang.String toString(ComplexArray.Double array)
public static double[] realPart(ComplexArray.Double array)
public static double[] magnitude(ComplexArray.Double array)
public static final double magnitude2(ComplexArray.Double array, int i)
public static final double magnitude(ComplexArray.Double array, int i)