public class ComplexFloatLargeArray extends LargeArray
LargeArray.DeallocatorisConstant, LARGEST_SUBARRAY, length, parent, ptr, sizeof, type| Constructor and Description |
|---|
ComplexFloatLargeArray(float[] data)
Creates new instance of this class.
|
ComplexFloatLargeArray(float[] dataRe,
float[] dataIm)
Creates new instance of this class.
|
ComplexFloatLargeArray(FloatLargeArray data)
Creates new instance of this class.
|
ComplexFloatLargeArray(FloatLargeArray dataRe,
FloatLargeArray dataIm)
Creates new instance of this class.
|
ComplexFloatLargeArray(long length)
Creates new instance of this class.
|
ComplexFloatLargeArray(long length,
boolean zeroNativeMemory)
Creates new instance of this class.
|
ComplexFloatLargeArray(long length,
float[] constantValue)
Creates a constant array.
|
| Modifier and Type | Method and Description |
|---|---|
ComplexFloatLargeArray |
clone() |
boolean |
equals(Object o) |
float[] |
get(long i)
Returns a complex value ({re, im}) at index i.
|
FloatLargeArray |
getAbsArray()
Returns the absolute value of this array.
|
FloatLargeArray |
getArgArray()
Returns the argument of this array.
|
boolean |
getBoolean(long i)
Returns a boolean value that corresponds to the real part at index i.
|
boolean[] |
getBooleanData()
If the size of the array is smaller than LargeArray.LARGEST_SUBARRAY, then this
method returns boolean data that correspond to the real part of this object.
|
boolean[] |
getBooleanData(boolean[] a,
long startPos,
long endPos,
long step)
If (endPos - startPos) / step is smaller than LargeArray.LARGEST_SUBARRAY, then
this method returns selected elements of the real part of this object.
|
byte |
getByte(long i)
Returns a signed byte value that corresponds to the real part at index i.
|
byte[] |
getByteData()
If the size of the array is smaller than LargeArray.LARGEST_SUBARRAY, then this
method returns byte data that correspond to the real part of this object.
|
byte[] |
getByteData(byte[] a,
long startPos,
long endPos,
long step)
If (endPos - startPos) / step is smaller than LargeArray.LARGEST_SUBARRAY, then
this method returns selected elements of the real part of this object.
|
float[] |
getComplexData()
If 2 * size of the array is smaller than LargeArray.LARGEST_SUBARRAY, then this
method returns complex data in the interleaved layout.
|
float[] |
getComplexData(float[] a,
long startPos,
long endPos,
long step)
If (endPos - startPos) / step is smaller than LargeArray.LARGEST_SUBARRAY, then
this method returns selected elements of an array.
|
double[] |
getComplexDouble(long i)
Returns a complex value ({re, im}) at index i.
|
float[] |
getComplexFloat(long i)
Returns a complex value ({re, im}) at index i.
|
float[][] |
getData()
Returns a reference to the internal data arrays in the form of result[2][length],
where result[0] holds the reference to the real part and result[1] holds the reference to the imaginary part.
|
double |
getDouble(long i)
Returns a double value that corresponds to the real part at index i.
|
double[] |
getDoubleData()
If the size of the array is smaller than LargeArray.LARGEST_SUBARRAY, then this
method returns double data that correspond to the real part of this object.
|
double[] |
getDoubleData(double[] a,
long startPos,
long endPos,
long step)
If (endPos - startPos) / step is smaller than LargeArray.LARGEST_SUBARRAY, then
this method returns selected elements of the real part of this object.
|
float |
getFloat(long i)
Returns a float value that corresponds to the real part at index i.
|
float[] |
getFloatData()
If the size of the array is smaller than LargeArray.LARGEST_SUBARRAY, then this
method returns float data that correspond to the real part of this object.
|
float[] |
getFloatData(float[] a,
long startPos,
long endPos,
long step)
If (endPos - startPos) / step is smaller than LargeArray.LARGEST_SUBARRAY, then
this method returns selected elements of the real part of this object.
|
float[] |
getFromNative(long i)
Returns a complex value ({re, im}) at index i.
|
FloatLargeArray |
getImaginaryArray()
Returns the imaginary part of this array.
|
int |
getInt(long i)
Returns an int value that corresponds to the real part at index i.
|
int[] |
getIntData()
If the size of the array is smaller than LargeArray.LARGEST_SUBARRAY, then this
method returns int data that correspond to the real part of this object.
|
int[] |
getIntData(int[] a,
long startPos,
long endPos,
long step)
If (endPos - startPos) / step is smaller than LargeArray.LARGEST_SUBARRAY, then
this method returns selected elements of the real part of this object.
|
long |
getLong(long i)
Returns a long value that corresponds to the real part at index i.
|
long[] |
getLongData()
If the size of the array is smaller than LargeArray.LARGEST_SUBARRAY, then this
method returns long data that correspond to the real part of this object.
|
long[] |
getLongData(long[] a,
long startPos,
long endPos,
long step)
If (endPos - startPos) / step is smaller than LargeArray.LARGEST_SUBARRAY, then
this method returns selected elements of the real part of this object.
|
FloatLargeArray |
getRealArray()
Returns the real part of this array.
|
short |
getShort(long i)
Returns a short value that corresponds to the real part at index i.
|
short[] |
getShortData()
If the size of the array is smaller than LargeArray.LARGEST_SUBARRAY, then this
method returns short data that correspond to the real part of this object.
|
short[] |
getShortData(short[] a,
long startPos,
long endPos,
long step)
If (endPos - startPos) / step is smaller than LargeArray.LARGEST_SUBARRAY, then
this method returns selected elements of the real part of this object.
|
short |
getUnsignedByte(long i)
Returns an unsigned byte value that corresponds to the real part at index i.
|
int |
hashCode() |
boolean |
isLarge()
Returns true if the size of an array is larger than LARGEST_SUBARRAY.
|
void |
set(long i,
Object value)
Sets a complex value ({re, im}) at index i.
|
void |
setBoolean(long i,
boolean value)
Sets a boolean value as a real part at index i.
|
void |
setByte(long i,
byte value)
Sets a signed byte value as a real part at index i.
|
void |
setComplexDouble(long i,
double[] value)
Sets a complex value ({re, im}) at index i.
|
void |
setComplexFloat(long i,
float[] value)
Sets a complex value ({re, im}) at index i.
|
void |
setDouble(long i,
double value)
Sets a double value as a real part at index i.
|
void |
setFloat(long i,
float value)
Sets a float value as a real part at index i.
|
void |
setInt(long i,
int value)
Sets an int value as a real part at index i.
|
void |
setLong(long i,
long value)
Sets a long value as a real part at index i.
|
void |
setShort(long i,
short value)
Sets a short value as a real part at index i.
|
void |
setToNative(long i,
Object value)
Sets a complex value at index i.
|
void |
setUnsignedByte(long i,
short value)
Sets an unsigned byte value as a real part at index i.
|
get_safe, getBoolean_safe, getByte_safe, getDouble_safe, getFloat_safe, getInt_safe, getLong_safe, getMaxSizeOf32bitArray, getShort_safe, getType, getUnsignedByte_safe, isConstant, isNumeric, length, nativePointer, set_safe, setBoolean_safe, setByte_safe, setDouble_safe, setFloat_safe, setInt_safe, setLong_safe, setMaxSizeOf32bitArray, setShort_safe, setUnsignedByte_safe, zeroNativeMemorypublic ComplexFloatLargeArray(long length)
length - number of elementspublic ComplexFloatLargeArray(long length,
boolean zeroNativeMemory)
length - number of elementszeroNativeMemory - if true, then the native memory is zeroed.public ComplexFloatLargeArray(long length,
float[] constantValue)
length - number of elementsconstantValue - valuepublic ComplexFloatLargeArray(float[] data)
data - data array, this reference is not used internally.public ComplexFloatLargeArray(FloatLargeArray data)
data - data array, this reference is not used internally.public ComplexFloatLargeArray(float[] dataRe,
float[] dataIm)
dataRe - real part, this reference is used internally.dataIm - imaginary part, this reference not used internally.public ComplexFloatLargeArray(FloatLargeArray dataRe, FloatLargeArray dataIm)
dataRe - real part, this reference is used internally.dataIm - imaginary part, this reference is used internally.public ComplexFloatLargeArray clone()
clone in class LargeArraypublic boolean equals(Object o)
equals in class LargeArraypublic int hashCode()
hashCode in class LargeArraypublic boolean isLarge()
LargeArrayisLarge in class LargeArraypublic final FloatLargeArray getRealArray()
public final FloatLargeArray getImaginaryArray()
public final FloatLargeArray getAbsArray()
public final FloatLargeArray getArgArray()
public final float[] get(long i)
get in class LargeArrayi - an indexpublic final float[] getFromNative(long i)
getFromNative in class LargeArrayi - an indexpublic final boolean getBoolean(long i)
getBoolean in class LargeArrayi - an indexpublic final byte getByte(long i)
getByte in class LargeArrayi - an indexpublic final short getUnsignedByte(long i)
getUnsignedByte in class LargeArrayi - an indexpublic final short getShort(long i)
getShort in class LargeArrayi - an indexpublic final int getInt(long i)
getInt in class LargeArrayi - an indexpublic final long getLong(long i)
getLong in class LargeArrayi - an indexpublic final float getFloat(long i)
getFloat in class LargeArrayi - an indexpublic final double getDouble(long i)
getDouble in class LargeArrayi - an indexpublic final float[] getComplexFloat(long i)
i - an indexpublic final double[] getComplexDouble(long i)
i - an indexpublic final float[][] getData()
getData in class LargeArraypublic final boolean[] getBooleanData()
getBooleanData in class LargeArraypublic final boolean[] getBooleanData(boolean[] a,
long startPos,
long endPos,
long step)
getBooleanData in class LargeArraya - the array into which the elements are to be stored, if it is big
enough; otherwise, a new array of is allocated for this purpose.startPos - starting position (included)endPos - ending position (excluded)step - step sizepublic final byte[] getByteData()
getByteData in class LargeArraypublic final byte[] getByteData(byte[] a,
long startPos,
long endPos,
long step)
getByteData in class LargeArraya - the array into which the elements are to be stored, if it is big
enough; otherwise, a new array of is allocated for this purpose.startPos - starting position (included)endPos - ending position (excluded)step - step sizepublic final short[] getShortData()
getShortData in class LargeArraypublic final short[] getShortData(short[] a,
long startPos,
long endPos,
long step)
getShortData in class LargeArraya - the array into which the elements are to be stored, if it is big
enough; otherwise, a new array of is allocated for this purpose.startPos - starting position (included)endPos - ending position (excluded)step - step sizepublic final int[] getIntData()
getIntData in class LargeArraypublic final int[] getIntData(int[] a,
long startPos,
long endPos,
long step)
getIntData in class LargeArraya - the array into which the elements are to be stored, if it is big
enough; otherwise, a new array of is allocated for this purpose.startPos - starting position (included)endPos - ending position (excluded)step - step sizepublic final long[] getLongData()
getLongData in class LargeArraypublic final long[] getLongData(long[] a,
long startPos,
long endPos,
long step)
getLongData in class LargeArraya - the array into which the elements are to be stored, if it is big
enough; otherwise, a new array of is allocated for this purpose.startPos - starting position (included)endPos - ending position (excluded)step - step sizepublic final float[] getFloatData()
getFloatData in class LargeArraypublic final float[] getFloatData(float[] a,
long startPos,
long endPos,
long step)
getFloatData in class LargeArraya - the array into which the elements are to be stored, if it is big
enough; otherwise, a new array of is allocated for this purpose.startPos - starting position (included)endPos - ending position (excluded)step - step sizepublic final double[] getDoubleData()
getDoubleData in class LargeArraypublic final double[] getDoubleData(double[] a,
long startPos,
long endPos,
long step)
getDoubleData in class LargeArraya - the array into which the elements are to be stored, if it is big
enough; otherwise, a new array of is allocated for this purpose.startPos - starting position (included)endPos - ending position (excluded)step - step sizepublic final float[] getComplexData()
public final float[] getComplexData(float[] a,
long startPos,
long endPos,
long step)
a - the array into which the elements are to be stored, if it is big
enough; otherwise, a new array of is allocated for this purpose.startPos - starting position (included)endPos - ending position (excluded)step - step sizepublic final void setToNative(long i,
Object value)
setToNative in class LargeArrayi - indexvalue - value to set, must be float[] of length 2ClassCastException - if the type of value argument is different
than the type of the arraypublic final void setBoolean(long i,
boolean value)
setBoolean in class LargeArrayi - indexvalue - value to set as a real partpublic final void setByte(long i,
byte value)
setByte in class LargeArrayi - indexvalue - value to set as a real partpublic final void setUnsignedByte(long i,
short value)
setUnsignedByte in class LargeArrayi - indexvalue - value to set as a real partpublic final void setShort(long i,
short value)
setShort in class LargeArrayi - indexvalue - value to set as a real partpublic final void setInt(long i,
int value)
setInt in class LargeArrayi - indexvalue - value to set as a real partpublic final void setLong(long i,
long value)
setLong in class LargeArrayi - indexvalue - value to set as a real partpublic final void setFloat(long i,
float value)
setFloat in class LargeArrayi - indexvalue - value to set as a real partpublic final void setDouble(long i,
double value)
setDouble in class LargeArrayi - indexvalue - value to set as a real partpublic final void set(long i,
Object value)
set in class LargeArrayi - indexvalue - value to set, must be float[] of length 2public final void setComplexFloat(long i,
float[] value)
i - indexvalue - value to setpublic final void setComplexDouble(long i,
double[] value)
i - indexvalue - value to setCopyright © 2015. All rights reserved.