public abstract class DoubleArrayArray extends DataList
DoubleArray
s. A good JIT compiler optimizes this such that access it is not slower
as for the pure array. The advantage is, that only the creator who provided the array is allowed to
change it. This class is abstract it leaves the implementation and especially the storage model
to its subclasses.Modifier and Type | Class and Description |
---|---|
static class |
DoubleArrayArray.Array
This implementation of DoubleArrayArray stores the data as an array of 2-arrays.
|
static class |
DoubleArrayArray.Inlined |
Modifier and Type | Method and Description |
---|---|
abstract int |
getLength() |
abstract int |
getLengthAt(int n) |
abstract DoubleArray |
getValueAt(int n) |
abstract double |
getValueAt(int n,
int i) |
DoubleArrayArray |
toDoubleArrayArray() |
double[][] |
toDoubleArrayArray(double[][] target)
Copy the data into the specified array or into a new one
if the target parameter is
null . |
get, getStorageModel, item, readOnlyList, size, toDoubleArray, toIntArray, toIntArrayArray, toString
copyTo, copyTo, printUsage, toDoubleArray, toIntArray, toIntArrayArray, toStringArray, toStringArray, toStringArrayArray, toStringArrayArray
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public abstract double getValueAt(int n, int i)
public abstract int getLength()
public abstract int getLengthAt(int n)
public abstract DoubleArray getValueAt(int n)
public final DoubleArrayArray toDoubleArrayArray()
toDoubleArrayArray
in class DataList
public double[][] toDoubleArrayArray(double[][] target)
DataItem
null
. Returns
the filled array.toDoubleArrayArray
in class DataItem