class: FloatLargeArray
[125:14] (extern: com.lehman.aussom.AussomFloatLargeArray) extends: object
Wrapper around a JLargeArrays FloatLargeArray. Used by every JTransforms "Large" overload that takes a FloatLargeArray. Backed by pl.edu.icm.jlargearrays.FloatLargeArray.
Methods
-
FloatLargeArray (
int Length = 0)Constructs a new FloatLargeArray of the given length filled with zeros. The default constructor with no args creates an uninitialized wrapper used by helpers that need to return a populated FloatLargeArray.
- @p
Lengthis the array length. Default is 0 (uninitialized).
- @p
-
init (
int Length) -
initConstant (
int Length, double Constant)Constructs a new FloatLargeArray of the given length filled with the supplied constant value.
- @p
Lengthis a long with the array length. - @p
Constantis the float fill value. - @r
Thisobject.
- @p
-
fromList (
list Values)Replaces the contents of this FloatLargeArray with the values from an Aussom list. The array is resized to match the list length.
- @p
Valuesis a list of numbers. - @r
Thisobject.
- @p
-
length ()
Returns the array length.
- @r
Along with the array length.
- @r
-
getFloat (
int Index)Returns the value at the given index.
- @p
Indexis a long index. - @r
Adouble with the value (single precision is widened to double).
- @p
-
setFloat (
int Index, double Value)Sets the value at the given index.
- @p
Indexis a long index. - @p
Valueis the float value to set (passed as double, narrowed inside). - @r
Thisobject.
- @p
-
fill (
double Value)Fills the entire array with a constant value.
- @p
Valueis the float fill value. - @r
Thisobject.
- @p
-
toList ()
Returns the entire array contents as an Aussom list. Beware of memory pressure on very large arrays.
- @r
Alist of doubles.
- @r
-
toListRange (
int Start, int End)Returns a sub-range of the array as an Aussom list.
- @p
Startis the inclusive start index. - @p
Endis the exclusive end index. - @r
Alist of doubles in the requested range.
- @p
-
copy ()
Returns a deep copy of this FloatLargeArray.
- @r
Anew FloatLargeArray with copied data.
- @r
-
equalsTo (
object Other)Compares this FloatLargeArray to another for equality.
- @p
Otheris another FloatLargeArray. - @r
Abool with true when the two are equal in length and contents.
- @p
class: DoubleLargeArray
[26:14] (extern: com.lehman.aussom.AussomDoubleLargeArray) extends: object
Wrapper around a JLargeArrays DoubleLargeArray. Used by every JTransforms "Large" overload that takes a DoubleLargeArray. Backed by pl.edu.icm.jlargearrays.DoubleLargeArray. A DoubleLargeArray can hold up to 2^63 elements, so prefer toListRange() over toList() when working with very large data.
Methods
-
DoubleLargeArray (
int Length = 0)Constructs a new DoubleLargeArray of the given length filled with zeros. The default constructor with no args creates an uninitialized wrapper, which is used internally when other helpers (for example IOUtils.fillMatrix1DLargeD) need to return a populated DoubleLargeArray.
- @p
Lengthis the array length. Default is 0 (uninitialized).
- @p
-
init (
int Length) -
initConstant (
int Length, double Constant)Constructs a new DoubleLargeArray of the given length filled with the supplied constant value.
- @p
Lengthis a long with the array length. - @p
Constantis the double fill value. - @r
Thisobject.
- @p
-
fromList (
list Values)Replaces the contents of this DoubleLargeArray with the values from an Aussom list. The array is resized to match the list length.
- @p
Valuesis a list of numbers. - @r
Thisobject.
- @p
-
length ()
Returns the array length.
- @r
Along with the array length.
- @r
-
getDouble (
int Index)Returns the value at the given index.
- @p
Indexis a long index. - @r
Adouble with the value.
- @p
-
setDouble (
int Index, double Value)Sets the value at the given index.
- @p
Indexis a long index. - @p
Valueis the double value to set. - @r
Thisobject.
- @p
-
fill (
double Value)Fills the entire array with a constant value.
- @p
Valueis the double fill value. - @r
Thisobject.
- @p
-
toList ()
Returns the entire array contents as an Aussom list. Beware of memory pressure on very large arrays. Prefer toListRange for sampling.
- @r
Alist of doubles.
- @r
-
toListRange (
int Start, int End)Returns a sub-range of the array as an Aussom list.
- @p
Startis the inclusive start index. - @p
Endis the exclusive end index. - @r
Alist of doubles in the requested range.
- @p
-
copy ()
Returns a deep copy of this DoubleLargeArray.
- @r
Anew DoubleLargeArray with copied data.
- @r
-
equalsTo (
object Other)Compares this DoubleLargeArray to another for equality.
- @p
Otheris another DoubleLargeArray. - @r
Abool with true when the two are equal in length and contents.
- @p