Uses of Class
org.nd4j.common.primitives.Pair
-
Packages that use Pair Package Description org.nd4j.common.collection org.nd4j.common.function org.nd4j.common.primitives -
-
Uses of Pair in org.nd4j.common.collection
Methods in org.nd4j.common.collection that return Pair Modifier and Type Method Description Pair<K,T>MultiDimensionalMap.Entry. getKey()Returns the key corresponding to this entry.Methods in org.nd4j.common.collection that return types with arguments of type Pair Modifier and Type Method Description Iterator<Pair<K,V>>MultiDimensionalSet. iterator()Returns an iterator over the elements in this applyTransformToDestination.Set<Pair<K,T>>MultiDimensionalMap. keySet()Returns aSetview of the keys contained in this map.Methods in org.nd4j.common.collection with parameters of type Pair Modifier and Type Method Description booleanMultiDimensionalSet. add(Pair<K,V> kvPair)Adds the specified element to this applyTransformToDestination if it is not already present (optional operation).VMultiDimensionalMap. put(Pair<K,T> key, V value)Associates the specified value with the specified key in this map (optional operation).Method parameters in org.nd4j.common.collection with type arguments of type Pair Modifier and Type Method Description booleanMultiDimensionalSet. 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).voidMultiDimensionalMap. putAll(Map<? extends Pair<K,T>,? extends V> m)Copies all of the mappings from the specified map to this map (optional operation).Constructor parameters in org.nd4j.common.collection with type arguments of type Pair Constructor Description MultiDimensionalMap(Map<Pair<K,T>,V> backedMap)MultiDimensionalSet(Set<Pair<K,V>> backedSet) -
Uses of Pair in org.nd4j.common.function
Methods in org.nd4j.common.function that return types with arguments of type Pair Modifier and Type Method 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 ofPairMethod parameters in org.nd4j.common.function with type arguments of type Pair Modifier and Type Method 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,List<V>>FunctionalUtils. groupByKey(List<Pair<K,V>> listInput)Group the input pairs by the key of each pair. -
Uses of Pair in org.nd4j.common.primitives
Methods in org.nd4j.common.primitives that return Pair Modifier and Type Method Description Pair<F,S>CounterMap. argMax()This method returns pair of elements with a max valuestatic <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)Methods in org.nd4j.common.primitives that return types with arguments of type Pair Modifier and Type Method 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 counterMethods in org.nd4j.common.primitives with parameters of type Pair Modifier and Type Method Description intCounter.PairComparator. compare(Pair<T,Double> o1, Pair<T,Double> o2)intCounter.ReversedPairComparator. compare(Pair<T,Double> o1, Pair<T,Double> o2)
-