public abstract class MatrixBaseNDArrayList<X extends BaseNDArrayList> extends AbstractList<X>
ArrayList
like implementation of List
using INDArray
as the backing data structure.
Creates an internal container of ndarray lists with a matrix shape.modCount
Constructor and Description |
---|
MatrixBaseNDArrayList() |
Modifier and Type | Method and Description |
---|---|
void |
add(int i,
X aX) |
boolean |
add(X aX) |
boolean |
addAll(Collection<? extends X> collection) |
boolean |
addAll(int i,
Collection<? extends X> 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) |
X |
get(int i) |
Number |
getEntry(int i,
int j)
Get entry i,j in the matrix
|
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<X> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<X> |
listIterator() |
ListIterator<X> |
listIterator(int i) |
X |
remove(int i) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> collection) |
boolean |
retainAll(Collection<?> collection) |
X |
set(int i,
X aX) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] ts) |
String |
toString() |
equals, hashCode, removeRange, subList
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
replaceAll, sort, spliterator
parallelStream, removeIf, stream
public INDArray array()
public int size()
size
in interface Collection<X extends BaseNDArrayList>
size
in interface List<X extends BaseNDArrayList>
size
in class AbstractCollection<X extends BaseNDArrayList>
public boolean isEmpty()
isEmpty
in interface Collection<X extends BaseNDArrayList>
isEmpty
in interface List<X extends BaseNDArrayList>
isEmpty
in class AbstractCollection<X extends BaseNDArrayList>
public boolean contains(Object o)
contains
in interface Collection<X extends BaseNDArrayList>
contains
in interface List<X extends BaseNDArrayList>
contains
in class AbstractCollection<X extends BaseNDArrayList>
public Iterator<X> iterator()
iterator
in interface Iterable<X extends BaseNDArrayList>
iterator
in interface Collection<X extends BaseNDArrayList>
iterator
in interface List<X extends BaseNDArrayList>
iterator
in class AbstractList<X extends BaseNDArrayList>
public Object[] toArray()
toArray
in interface Collection<X extends BaseNDArrayList>
toArray
in interface List<X extends BaseNDArrayList>
toArray
in class AbstractCollection<X extends BaseNDArrayList>
public <T> T[] toArray(T[] ts)
toArray
in interface Collection<X extends BaseNDArrayList>
toArray
in interface List<X extends BaseNDArrayList>
toArray
in class AbstractCollection<X extends BaseNDArrayList>
public boolean add(X aX)
add
in interface Collection<X extends BaseNDArrayList>
add
in interface List<X extends BaseNDArrayList>
add
in class AbstractList<X extends BaseNDArrayList>
public boolean remove(Object o)
remove
in interface Collection<X extends BaseNDArrayList>
remove
in interface List<X extends BaseNDArrayList>
remove
in class AbstractCollection<X extends BaseNDArrayList>
public boolean containsAll(Collection<?> collection)
containsAll
in interface Collection<X extends BaseNDArrayList>
containsAll
in interface List<X extends BaseNDArrayList>
containsAll
in class AbstractCollection<X extends BaseNDArrayList>
public boolean addAll(Collection<? extends X> collection)
addAll
in interface Collection<X extends BaseNDArrayList>
addAll
in interface List<X extends BaseNDArrayList>
addAll
in class AbstractCollection<X extends BaseNDArrayList>
public boolean addAll(int i, Collection<? extends X> collection)
addAll
in interface List<X extends BaseNDArrayList>
addAll
in class AbstractList<X extends BaseNDArrayList>
public boolean removeAll(Collection<?> collection)
removeAll
in interface Collection<X extends BaseNDArrayList>
removeAll
in interface List<X extends BaseNDArrayList>
removeAll
in class AbstractCollection<X extends BaseNDArrayList>
public boolean retainAll(Collection<?> collection)
retainAll
in interface Collection<X extends BaseNDArrayList>
retainAll
in interface List<X extends BaseNDArrayList>
retainAll
in class AbstractCollection<X extends BaseNDArrayList>
public void clear()
clear
in interface Collection<X extends BaseNDArrayList>
clear
in interface List<X extends BaseNDArrayList>
clear
in class AbstractList<X extends BaseNDArrayList>
public X get(int i)
get
in interface List<X extends BaseNDArrayList>
get
in class AbstractList<X extends BaseNDArrayList>
public X set(int i, X aX)
set
in interface List<X extends BaseNDArrayList>
set
in class AbstractList<X extends BaseNDArrayList>
public void add(int i, X aX)
add
in interface List<X extends BaseNDArrayList>
add
in class AbstractList<X extends BaseNDArrayList>
public X remove(int i)
remove
in interface List<X extends BaseNDArrayList>
remove
in class AbstractList<X extends BaseNDArrayList>
public int indexOf(Object o)
indexOf
in interface List<X extends BaseNDArrayList>
indexOf
in class AbstractList<X extends BaseNDArrayList>
public int lastIndexOf(Object o)
lastIndexOf
in interface List<X extends BaseNDArrayList>
lastIndexOf
in class AbstractList<X extends BaseNDArrayList>
public ListIterator<X> listIterator()
listIterator
in interface List<X extends BaseNDArrayList>
listIterator
in class AbstractList<X extends BaseNDArrayList>
public ListIterator<X> listIterator(int i)
listIterator
in interface List<X extends BaseNDArrayList>
listIterator
in class AbstractList<X extends BaseNDArrayList>
public String toString()
toString
in class AbstractCollection<X extends BaseNDArrayList>
public Number getEntry(int i, int j)
i
- the rowj
- the columnCopyright © 2019. All rights reserved.