pl.edu.icm.jlargearrays
Class ComplexFloatLargeArray
- java.lang.Object
-
- pl.edu.icm.jlargearrays.LargeArray
-
- pl.edu.icm.jlargearrays.ComplexFloatLargeArray
-
- All Implemented Interfaces:
- java.io.Serializable
public class ComplexFloatLargeArray extends LargeArray
An array of complex numbers (double precision) that can store up to 263 elements.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class pl.edu.icm.jlargearrays.LargeArray
DEFAULT_MAX_OBJECT_SIZE, DEFAULT_MAX_STRING_LENGTH, LARGEST_SUBARRAY
-
-
Constructor Summary
Constructors 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[] initValue)Creates new instance of this classComplexFloatLargeArray(long length, float[] initValue, boolean createConstant)Creates new instance of this class
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description ComplexFloatLargeArrayclone()booleanequals(java.lang.Object o)Indicates whether some other object is "equal to" this one.float[]get(long i)Returns a complex value ({re, im}) at index i.FloatLargeArraygetAbsArray()Returns the absolute value of this array.FloatLargeArraygetArgArray()Returns the argument of this array.booleangetBoolean(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.bytegetByte(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.doublegetDouble(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.floatgetFloat(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.FloatLargeArraygetImaginaryArray()Returns the imaginary part of this array.intgetInt(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.longgetLong(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.FloatLargeArraygetRealArray()Returns the real part of this array.shortgetShort(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.shortgetUnsignedByte(long i)Returns an unsigned byte value that corresponds to the real part at index i.inthashCode(float quality)Generates an approximate hash code using a quality argument.booleanisConstant()Return true if the array is constant.booleanisLarge()Returns true if the off-heap memory is used to store array elements.voidset(long i, java.lang.Object value)Sets a complex value ({re, im}) at index i.voidsetBoolean(long i, boolean value)Sets a boolean value as a real part at index i.voidsetByte(long i, byte value)Sets a signed byte value as a real part at index i.voidsetComplexDouble(long i, double[] value)Sets a complex value ({re, im}) at index i.voidsetComplexFloat(long i, float[] value)Sets a complex value ({re, im}) at index i.voidsetDouble(long i, double value)Sets a double value as a real part at index i.voidsetFloat(long i, float value)Sets a float value as a real part at index i.voidsetInt(long i, int value)Sets an int value as a real part at index i.voidsetLong(long i, long value)Sets a long value as a real part at index i.voidsetShort(long i, short value)Sets a short value as a real part at index i.voidsetToNative(long i, java.lang.Object value)Sets a complex value at index i.voidsetUnsignedByte(long i, short value)Sets an unsigned byte value as a real part at index i.-
Methods inherited from class pl.edu.icm.jlargearrays.LargeArray
get_safe, getBoolean_safe, getByte_safe, getDouble_safe, getFloat_safe, getInt_safe, getLong_safe, getMaxSizeOf32bitArray, getShort_safe, getType, getUnsignedByte_safe, hashCode, isNumeric, length, nativePointer, set_safe, setBoolean_safe, setByte_safe, setDouble_safe, setFloat_safe, setInt_safe, setLong_safe, setMaxSizeOf32bitArray, setShort_safe, setUnsignedByte_safe
-
-
-
-
Constructor Detail
-
ComplexFloatLargeArray
public ComplexFloatLargeArray(long length)
Creates new instance of this class.- Parameters:
length- number of elements
-
ComplexFloatLargeArray
public ComplexFloatLargeArray(long length, boolean zeroNativeMemory)Creates new instance of this class.- Parameters:
length- number of elementszeroNativeMemory- if true, then the native memory is zeroed.
-
ComplexFloatLargeArray
public ComplexFloatLargeArray(long length, float[] initValue)Creates new instance of this class- Parameters:
length- number of elementsinitValue- initialization value
-
ComplexFloatLargeArray
public ComplexFloatLargeArray(long length, float[] initValue, boolean createConstant)Creates new instance of this class- Parameters:
length- number of elementsinitValue- initialization valuecreateConstant- if true, then a constant array is created
-
ComplexFloatLargeArray
public ComplexFloatLargeArray(float[] data)
Creates new instance of this class.- Parameters:
data- data array, this reference is not used internally.
-
ComplexFloatLargeArray
public ComplexFloatLargeArray(FloatLargeArray data)
Creates new instance of this class.- Parameters:
data- data array, this reference is not used internally.
-
ComplexFloatLargeArray
public ComplexFloatLargeArray(float[] dataRe, float[] dataIm)Creates new instance of this class.- Parameters:
dataRe- real part, this reference is used internally.dataIm- imaginary part, this reference not used internally.
-
ComplexFloatLargeArray
public ComplexFloatLargeArray(FloatLargeArray dataRe, FloatLargeArray dataIm)
Creates new instance of this class.- Parameters:
dataRe- real part, this reference is used internally.dataIm- imaginary part, this reference is used internally.
-
-
Method Detail
-
clone
public ComplexFloatLargeArray clone()
- Overrides:
clonein classLargeArray
-
equals
public boolean equals(java.lang.Object o)
Description copied from class:LargeArrayIndicates whether some other object is "equal to" this one. Theequalsmethod implements "deep comparison": all properties are compared and all corresponding elements in both arrays are compared.- Specified by:
equalsin classLargeArray- Parameters:
o- the reference object with which to compare.- Returns:
trueif this object is the same as the o argument;falseotherwise.- See Also:
LargeArray.hashCode(),HashMap
-
hashCode
public int hashCode(float quality)
Description copied from class:LargeArrayGenerates an approximate hash code using a quality argument. For quality equal to 1 this method is equivalent to hashCode().- Overrides:
hashCodein classLargeArray- Parameters:
quality- a number between 0 and 1.- Returns:
- an approximate hash code
-
isLarge
public boolean isLarge()
Description copied from class:LargeArrayReturns true if the off-heap memory is used to store array elements.- Overrides:
isLargein classLargeArray- Returns:
- true if the off-heap memory is used to store array elements, false otherwise.
-
isConstant
public boolean isConstant()
Description copied from class:LargeArrayReturn true if the array is constant. Constant arrays cannot be modified, i.e. all setters throw an IllegalAccessError exception.- Overrides:
isConstantin classLargeArray- Returns:
- true if the arrays is constant, false otherwise
-
getRealArray
public final FloatLargeArray getRealArray()
Returns the real part of this array.- Returns:
- reference to the real part.
-
getImaginaryArray
public final FloatLargeArray getImaginaryArray()
Returns the imaginary part of this array.- Returns:
- reference to the imaginary part.
-
getAbsArray
public final FloatLargeArray getAbsArray()
Returns the absolute value of this array.- Returns:
- the absolute value.
-
getArgArray
public final FloatLargeArray getArgArray()
Returns the argument of this array.- Returns:
- the argument
-
get
public final float[] get(long i)
Returns a complex value ({re, im}) at index i. Array bounds are not checked. Calling this method with invalid index argument will cause JVM crash.- Specified by:
getin classLargeArray- Parameters:
i- an index- Returns:
- a value at index i ({re, im}).
-
getFromNative
public final float[] getFromNative(long i)
Returns a complex value ({re, im}) at index i. Array bounds are not checked. If isLarge() returns false for a given array or the index argument is invalid, then calling this method will cause JVM crash.- Specified by:
getFromNativein classLargeArray- Parameters:
i- an index- Returns:
- a value at index i ({re, im}).
-
getBoolean
public final boolean getBoolean(long i)
Returns a boolean value that corresponds to the real part at index i. Array bounds are not checked. Calling this method with invalid index argument will cause JVM crash.- Specified by:
getBooleanin classLargeArray- Parameters:
i- an index- Returns:
- a value that corresponds to the real part at index i.
-
getByte
public final byte getByte(long i)
Returns a signed byte value that corresponds to the real part at index i. Array bounds are not checked. Calling this method with invalid index argument will cause JVM crash.- Specified by:
getBytein classLargeArray- Parameters:
i- an index- Returns:
- a value that corresponds to the real part at index i.
-
getUnsignedByte
public final short getUnsignedByte(long i)
Returns an unsigned byte value that corresponds to the real part at index i. Array bounds are not checked. Calling this method with invalid index argument will cause JVM crash.- Specified by:
getUnsignedBytein classLargeArray- Parameters:
i- an index- Returns:
- a value that corresponds to the real part at index i.
-
getShort
public final short getShort(long i)
Returns a short value that corresponds to the real part at index i. Array bounds are not checked. Calling this method with invalid index argument will cause JVM crash.- Specified by:
getShortin classLargeArray- Parameters:
i- an index- Returns:
- a value that corresponds to the real part at index i.
-
getInt
public final int getInt(long i)
Returns an int value that corresponds to the real part at index i. Array bounds are not checked. Calling this method with invalid index argument will cause JVM crash.- Specified by:
getIntin classLargeArray- Parameters:
i- an index- Returns:
- a value that corresponds to the real part at index i.
-
getLong
public final long getLong(long i)
Returns a long value that corresponds to the real part at index i. Array bounds are not checked. Calling this method with invalid index argument will cause JVM crash.- Specified by:
getLongin classLargeArray- Parameters:
i- an index- Returns:
- a value that corresponds to the real part at index i.
-
getFloat
public final float getFloat(long i)
Returns a float value that corresponds to the real part at index i. Array bounds are not checked. Calling this method with invalid index argument will cause JVM crash.- Specified by:
getFloatin classLargeArray- Parameters:
i- an index- Returns:
- a value that corresponds to the real part at index i.
-
getDouble
public final double getDouble(long i)
Returns a double value that corresponds to the real part at index i. Array bounds are not checked. Calling this method with invalid index argument will cause JVM crash.- Specified by:
getDoublein classLargeArray- Parameters:
i- an index- Returns:
- a value that corresponds to the real part at index i.
-
getComplexFloat
public final float[] getComplexFloat(long i)
Returns a complex value ({re, im}) at index i. Array bounds are not checked. Calling this method with invalid index argument will cause JVM crash.- Parameters:
i- an index- Returns:
- a value at index i ({re, im}).
-
getComplexDouble
public final double[] getComplexDouble(long i)
Returns a complex value ({re, im}) at index i. Array bounds are not checked. Calling this method with invalid index argument will cause JVM crash.- Parameters:
i- an index- Returns:
- a value at index i ({re, im}).
-
getData
public final 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. If isLarge() returns true, then this method returns null.- Specified by:
getDatain classLargeArray- Returns:
- reference to the internal data arrays or null
-
getBooleanData
public final 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. Otherwise, it returns null.- Specified by:
getBooleanDatain classLargeArray- Returns:
- an array containing the elements of the real part of this object or null
-
getBooleanData
public final 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. Otherwise, it returns null. If (endPos - startPos) / step is smaller or equal to a.length, it is returned therein. Otherwise, a new array is allocated and returned. Array bounds are checked.- Specified by:
getBooleanDatain classLargeArray- Parameters:
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 size- Returns:
- an array containing the elements of the real part this object or null
-
getByteData
public final 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. Otherwise, it returns null.- Specified by:
getByteDatain classLargeArray- Returns:
- an array containing the elements of the real part of this object or null
-
getByteData
public final 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. Otherwise, it returns null. If (endPos - startPos) / step is smaller or equal to a.length, it is returned therein. Otherwise, a new array is allocated and returned. Array bounds are checked.- Specified by:
getByteDatain classLargeArray- Parameters:
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 size- Returns:
- an array containing the elements of the real part this object or null
-
getShortData
public final 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. Otherwise, it returns null.- Specified by:
getShortDatain classLargeArray- Returns:
- an array containing the elements of the real part of this object or null
-
getShortData
public final 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. Otherwise, it returns null. If (endPos - startPos) / step is smaller or equal to a.length, it is returned therein. Otherwise, a new array is allocated and returned. Array bounds are checked.- Specified by:
getShortDatain classLargeArray- Parameters:
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 size- Returns:
- an array containing the elements of the real part this object or null
-
getIntData
public final 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. Otherwise, it returns null.- Specified by:
getIntDatain classLargeArray- Returns:
- an array containing the elements of the real part of this object or null
-
getIntData
public final 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. Otherwise, it returns null. If (endPos - startPos) / step is smaller or equal to a.length, it is returned therein. Otherwise, a new array is allocated and returned. Array bounds are checked.- Specified by:
getIntDatain classLargeArray- Parameters:
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 size- Returns:
- an array containing the elements of the real part this object or null
-
getLongData
public final 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. Otherwise, it returns null.- Specified by:
getLongDatain classLargeArray- Returns:
- an array containing the elements of the real part of this object or null
-
getLongData
public final 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. Otherwise, it returns null. If (endPos - startPos) / step is smaller or equal to a.length, it is returned therein. Otherwise, a new array is allocated and returned. Array bounds are checked.- Specified by:
getLongDatain classLargeArray- Parameters:
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 size- Returns:
- an array containing the elements of the real part this object or null
-
getFloatData
public final 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. Otherwise, it returns null.- Specified by:
getFloatDatain classLargeArray- Returns:
- an array containing the elements of the real part of this object or null
-
getFloatData
public final 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. Otherwise, it returns null. If (endPos - startPos) / step is smaller or equal to a.length, it is returned therein. Otherwise, a new array is allocated and returned. Array bounds are checked.- Specified by:
getFloatDatain classLargeArray- Parameters:
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 size- Returns:
- an array containing the elements of the real part this object or null
-
getDoubleData
public final 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. Otherwise, it returns null.- Specified by:
getDoubleDatain classLargeArray- Returns:
- an array containing the elements of the real part of this object or null
-
getDoubleData
public final 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. Otherwise, it returns null. If (endPos - startPos) / step is smaller or equal to a.length, it is returned therein. Otherwise, a new array is allocated and returned. Array bounds are checked.- Specified by:
getDoubleDatain classLargeArray- Parameters:
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 size- Returns:
- an array containing the elements of the real part this object or null
-
getComplexData
public final float[] getComplexData()
If 2 * size of the array is smaller than LargeArray.LARGEST_SUBARRAY, then this method returns complex data in the interleaved layout. Otherwise, it returns null.- Returns:
- an array containing the elements of the list or null
-
getComplexData
public final 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. Otherwise, it returns null. If 2 * ((endPos - startPos) / step) is smaller or equal to a.length, it is returned therein. Otherwise, a new array is allocated and returned. Array bounds are checked.- Parameters:
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 size- Returns:
- an array containing the elements of the list or null
-
setToNative
public final void setToNative(long i, java.lang.Object value)Sets a complex value at index i. Array bounds are not checked. If isLarge() returns false for a given array or the index argument is invalid, then calling this method will cause JVM crash.- Specified by:
setToNativein classLargeArray- Parameters:
i- indexvalue- value to set, must be float[] of length 2- Throws:
java.lang.ClassCastException- if the type of value argument is different than the type of the array
-
setBoolean
public final void setBoolean(long i, boolean value)Sets a boolean value as a real part at index i. Array bounds are not checked. Calling this method with invalid index argument will cause JVM crash.- Specified by:
setBooleanin classLargeArray- Parameters:
i- indexvalue- value to set as a real part
-
setByte
public final void setByte(long i, byte value)Sets a signed byte value as a real part at index i. Array bounds are not checked. Calling this method with invalid index argument will cause JVM crash.- Specified by:
setBytein classLargeArray- Parameters:
i- indexvalue- value to set as a real part
-
setUnsignedByte
public final void setUnsignedByte(long i, short value)Sets an unsigned byte value as a real part at index i. Array bounds are not checked. Calling this method with invalid index argument will cause JVM crash.- Specified by:
setUnsignedBytein classLargeArray- Parameters:
i- indexvalue- value to set as a real part
-
setShort
public final void setShort(long i, short value)Sets a short value as a real part at index i. Array bounds are not checked. Calling this method with invalid index argument will cause JVM crash.- Specified by:
setShortin classLargeArray- Parameters:
i- indexvalue- value to set as a real part
-
setInt
public final void setInt(long i, int value)Sets an int value as a real part at index i. Array bounds are not checked. Calling this method with invalid index argument will cause JVM crash.- Specified by:
setIntin classLargeArray- Parameters:
i- indexvalue- value to set as a real part
-
setLong
public final void setLong(long i, long value)Sets a long value as a real part at index i. Array bounds are not checked. Calling this method with invalid index argument will cause JVM crash.- Specified by:
setLongin classLargeArray- Parameters:
i- indexvalue- value to set as a real part
-
setFloat
public final void setFloat(long i, float value)Sets a float value as a real part at index i. Array bounds are not checked. Calling this method with invalid index argument will cause JVM crash.- Specified by:
setFloatin classLargeArray- Parameters:
i- indexvalue- value to set as a real part
-
setDouble
public final void setDouble(long i, double value)Sets a double value as a real part at index i. Array bounds are not checked. Calling this method with invalid index argument will cause JVM crash.- Specified by:
setDoublein classLargeArray- Parameters:
i- indexvalue- value to set as a real part
-
set
public final void set(long i, java.lang.Object value)Sets a complex value ({re, im}) at index i. Array bounds are not checked. Calling this method with invalid index argument will cause JVM crash.- Overrides:
setin classLargeArray- Parameters:
i- indexvalue- value to set, must be float[] of length 2
-
setComplexFloat
public final void setComplexFloat(long i, float[] value)Sets a complex value ({re, im}) at index i. Array bounds are not checked. Calling this method with invalid index argument will cause JVM crash.- Parameters:
i- indexvalue- value to set
-
setComplexDouble
public final void setComplexDouble(long i, double[] value)Sets a complex value ({re, im}) at index i. Array bounds are not checked. Calling this method with invalid index argument will cause JVM crash.- Parameters:
i- indexvalue- value to set
-
-
DataMelt 3.0 © DataMelt by jWork.ORG