public class ComplexDoubleLargeArray extends LargeArray
LargeArray.DeallocatorisConstant, LARGEST_SUBARRAY, length, parent, ptr, sizeof, type| Constructor and Description |
|---|
ComplexDoubleLargeArray(double[] data)
Creates new instance of this class.
|
ComplexDoubleLargeArray(double[] dataRe,
double[] dataIm)
Creates new instance of this class.
|
ComplexDoubleLargeArray(DoubleLargeArray data)
Creates new instance of this class.
|
ComplexDoubleLargeArray(DoubleLargeArray dataRe,
DoubleLargeArray dataIm)
Creates new instance of this class.
|
ComplexDoubleLargeArray(long length)
Creates new instance of this class.
|
ComplexDoubleLargeArray(long length,
boolean zeroNativeMemory)
Creates new instance of this class.
|
ComplexDoubleLargeArray(long length,
double[] constantValue)
Creates a constant array.
|
| Modifier and Type | Method and Description |
|---|---|
ComplexDoubleLargeArray |
clone() |
boolean |
equals(Object o) |
double[] |
get(long i)
Returns a complex value ({re, im}) at index i.
|
DoubleLargeArray |
getAbsArray()
Returns the absolute value of this array.
|
DoubleLargeArray |
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.
|
double[] |
getComplexData()
If 2 * size of the array is smaller than LargeArray.LARGEST_SUBARRAY, then this
method returns complex data in the interleaved layout.
|
double[] |
getComplexData(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 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.
|
double[][] |
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.
|
double[] |
getFromNative(long i)
Returns a complex value ({re, im}) at index i.
|
DoubleLargeArray |
getImaginaryArray()
Returns the imaginary part of this array.
|
int |
getInt(long i)
Returns a 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.
|
DoubleLargeArray |
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 ComplexDoubleLargeArray(long length)
length - number of elementspublic ComplexDoubleLargeArray(long length,
boolean zeroNativeMemory)
length - number of elementszeroNativeMemory - if true, then the native memory is zeroed.public ComplexDoubleLargeArray(long length,
double[] constantValue)
length - number of elementsconstantValue - valuepublic ComplexDoubleLargeArray(double[] data)
data - data array, this reference is not used internally.public ComplexDoubleLargeArray(DoubleLargeArray data)
data - data array, this reference is not used internally.public ComplexDoubleLargeArray(double[] dataRe,
double[] dataIm)
dataRe - real part, this reference is used internally.dataIm - imaginary part, this reference not used internally.public ComplexDoubleLargeArray(DoubleLargeArray dataRe, DoubleLargeArray dataIm)
dataRe - real part, this reference is used internally.dataIm - imaginary part, this reference is used internally.public ComplexDoubleLargeArray 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 DoubleLargeArray getRealArray()
public final DoubleLargeArray getImaginaryArray()
public final DoubleLargeArray getAbsArray()
public final DoubleLargeArray getArgArray()
public final double[] get(long i)
get in class LargeArrayi - an indexpublic final double[] 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 double[][] 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 double[] getComplexData()
public final double[] getComplexData(double[] 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 double[] 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 double[] 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.