public class NDArrayList extends BaseNDArrayList<Double>
modCount
Constructor and Description |
---|
NDArrayList() |
NDArrayList(DataType dataType,
int size) |
NDArrayList(@NonNull INDArray container)
Specify the underlying ndarray for this list.
|
NDArrayList(@NonNull INDArray container,
int size)
Specify the underlying ndarray for this list.
|
NDArrayList(int size)
Initialize with the desired size.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(Double aDouble) |
void |
add(int i,
Double aDouble) |
boolean |
addAll(Collection<? extends Double> collection) |
boolean |
addAll(int i,
Collection<? extends Double> collection) |
INDArray |
array()
Get a view of the underlying array
relative to the size of the actual array.
|
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> collection) |
Double |
get(int i) |
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<Double> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<Double> |
listIterator() |
ListIterator<Double> |
listIterator(int i) |
Double |
remove(int i) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> collection) |
boolean |
retainAll(Collection<?> collection) |
Double |
set(int i,
Double aDouble) |
int |
size() |
List<Double> |
subList(int i,
int i1) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] ts) |
String |
toString() |
equals, hashCode, removeRange
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
replaceAll, sort, spliterator
parallelStream, removeIf, stream
public NDArrayList(int size)
size
- the initial size of the arraypublic NDArrayList(DataType dataType, int size)
public NDArrayList(@NonNull @NonNull INDArray container, int size)
container
- the underlying array.size
- the initial size of the array. This will set list.size()
to be equal to the passed in size.public NDArrayList()
public NDArrayList(@NonNull @NonNull INDArray container)
container
- the underlying array.public INDArray array()
array
in class BaseNDArrayList<Double>
public int size()
size
in interface Collection<Double>
size
in interface List<Double>
size
in class BaseNDArrayList<Double>
public boolean isEmpty()
isEmpty
in interface Collection<Double>
isEmpty
in interface List<Double>
isEmpty
in class BaseNDArrayList<Double>
public boolean contains(Object o)
contains
in interface Collection<Double>
contains
in interface List<Double>
contains
in class BaseNDArrayList<Double>
public Object[] toArray()
toArray
in interface Collection<Double>
toArray
in interface List<Double>
toArray
in class BaseNDArrayList<Double>
public <T> T[] toArray(T[] ts)
toArray
in interface Collection<Double>
toArray
in interface List<Double>
toArray
in class BaseNDArrayList<Double>
public boolean add(Double aDouble)
add
in interface Collection<Double>
add
in interface List<Double>
add
in class BaseNDArrayList<Double>
public boolean remove(Object o)
remove
in interface Collection<Double>
remove
in interface List<Double>
remove
in class BaseNDArrayList<Double>
public boolean containsAll(Collection<?> collection)
containsAll
in interface Collection<Double>
containsAll
in interface List<Double>
containsAll
in class BaseNDArrayList<Double>
public boolean addAll(Collection<? extends Double> collection)
addAll
in interface Collection<Double>
addAll
in interface List<Double>
addAll
in class BaseNDArrayList<Double>
public boolean addAll(int i, Collection<? extends Double> collection)
public boolean removeAll(Collection<?> collection)
removeAll
in interface Collection<Double>
removeAll
in interface List<Double>
removeAll
in class BaseNDArrayList<Double>
public boolean retainAll(Collection<?> collection)
retainAll
in interface Collection<Double>
retainAll
in interface List<Double>
retainAll
in class BaseNDArrayList<Double>
public void clear()
clear
in interface Collection<Double>
clear
in interface List<Double>
clear
in class BaseNDArrayList<Double>
public Double get(int i)
public void add(int i, Double aDouble)
public Double remove(int i)
public int indexOf(Object o)
public int lastIndexOf(Object o)
lastIndexOf
in interface List<Double>
lastIndexOf
in class BaseNDArrayList<Double>
public ListIterator<Double> listIterator()
listIterator
in interface List<Double>
listIterator
in class BaseNDArrayList<Double>
public ListIterator<Double> listIterator(int i)
listIterator
in interface List<Double>
listIterator
in class BaseNDArrayList<Double>
public String toString()
toString
in class BaseNDArrayList<Double>
Copyright © 2020. All rights reserved.