| Package | Description |
|---|---|
| org.nd4j.common.collection | |
| org.nd4j.common.function | |
| org.nd4j.common.primitives |
| Modifier and Type | Method and Description |
|---|---|
Pair<K,T> |
MultiDimensionalMap.Entry.getKey()
Returns the key corresponding to this entry.
|
| Modifier and Type | Method and Description |
|---|---|
Iterator<Pair<K,V>> |
MultiDimensionalSet.iterator()
Returns an iterator over the elements in this applyTransformToDestination.
|
Set<Pair<K,T>> |
MultiDimensionalMap.keySet()
Returns a
Set view of the keys contained in this map. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
MultiDimensionalSet.add(Pair<K,V> kvPair)
Adds the specified element to this applyTransformToDestination if it is not already present
(optional operation).
|
V |
MultiDimensionalMap.put(Pair<K,T> key,
V value)
Associates the specified value with the specified key in this map
(optional operation).
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
MultiDimensionalSet.addAll(Collection<? extends Pair<K,V>> c)
Adds all of the elements in the specified collection to this applyTransformToDestination if
they're not already present (optional operation).
|
void |
MultiDimensionalMap.putAll(Map<? extends Pair<K,T>,? extends V> m)
Copies all of the mappings from the specified map to this map
(optional operation).
|
| Constructor and Description |
|---|
MultiDimensionalMap(Map<Pair<K,T>,V> backedMap) |
MultiDimensionalSet(Set<Pair<K,V>> backedSet) |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> Map<K,Pair<List<V>,List<V>>> |
FunctionalUtils.cogroup(List<Pair<K,V>> left,
List<Pair<K,V>> right)
For each key in left and right, cogroup returns the list of values
as a pair for each value present in left as well as right.
|
static <K,V> List<Pair<K,V>> |
FunctionalUtils.mapToPair(Map<K,V> map)
Convert a map with a set of entries of type K for key
and V for value in to a list of
Pair |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> Map<K,Pair<List<V>,List<V>>> |
FunctionalUtils.cogroup(List<Pair<K,V>> left,
List<Pair<K,V>> right)
For each key in left and right, cogroup returns the list of values
as a pair for each value present in left as well as right.
|
static <K,V> Map<K,Pair<List<V>,List<V>>> |
FunctionalUtils.cogroup(List<Pair<K,V>> left,
List<Pair<K,V>> right)
For each key in left and right, cogroup returns the list of values
as a pair for each value present in left as well as right.
|
static <K,V> Map<K,List<V>> |
FunctionalUtils.groupByKey(List<Pair<K,V>> listInput)
Group the input pairs by the key of each pair.
|
| Modifier and Type | Method and Description |
|---|---|
Pair<F,S> |
CounterMap.argMax()
This method returns pair of elements with a max value
|
static <T,E> Pair<T,E> |
Pair.create(T key,
E value) |
static <T> Pair<T,T> |
Pair.fromArray(T[] arr) |
static <T,E> Pair<T,E> |
Pair.makePair(T key,
E value) |
static <T,E> Pair<T,E> |
Pair.of(T key,
E value) |
static <T,E> Pair<T,E> |
Pair.pairOf(T key,
E value) |
| Modifier and Type | Method and Description |
|---|---|
PriorityQueue<Pair<T,Double>> |
Counter.asPriorityQueue() |
PriorityQueue<Pair<T,Double>> |
Counter.asReversedPriorityQueue() |
Iterator<Pair<F,S>> |
CounterMap.getIterator()
This method returns Iterator of all first/second pairs stored in this counter
|
| Modifier and Type | Method and Description |
|---|---|
int |
Counter.PairComparator.compare(Pair<T,Double> o1,
Pair<T,Double> o2) |
int |
Counter.PairComparator.compare(Pair<T,Double> o1,
Pair<T,Double> o2) |
int |
Counter.ReversedPairComparator.compare(Pair<T,Double> o1,
Pair<T,Double> o2) |
int |
Counter.ReversedPairComparator.compare(Pair<T,Double> o1,
Pair<T,Double> o2) |
Copyright © 2021. All rights reserved.