Kokkos Core Kernels Package  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
List of all members
Kokkos::UnorderedMapInsertOpTypes< ValueTypeView, ValuesIdxType > Class Template Reference

Operations applied to the values array upon subsequent insertions. More...

#include <Kokkos_UnorderedMap.hpp>

Detailed Description

template<class ValueTypeView, class ValuesIdxType>
class Kokkos::UnorderedMapInsertOpTypes< ValueTypeView, ValuesIdxType >

Operations applied to the values array upon subsequent insertions.

The default behavior when a k,v pair already exists in the UnorderedMap is to perform no operation. Alternatively, the caller may select to instantiate the UnorderedMap with the AtomicAdd insert operator such that duplicate keys accumulate values into the given values array entry.

Template Parameters
ValueTypeViewThe UnorderedMap value array type.
ValuesIdxTypeThe index type for lookups in the value array.

Supported operations: NoOp: the first key inserted stores the associated value. AtomicAdd: duplicate key insertions sum values together.

Definition at line 136 of file Kokkos_UnorderedMap.hpp.


The documentation for this class was generated from the following file: