kokkos-utils 0.0.1
 
Loading...
Searching...
No Matches
Kokkos::utils::atomics::InsertMin Struct Reference

Insert an element in a view at a specific index using Kokkos::atomic_min. More...

#include <InsertOp.hpp>

Public Member Functions

template<concepts::View ViewType, std::integral IndexType, typename ValueType>
KOKKOS_FUNCTION void op (const ViewType &values, const IndexType index, ValueType &&value) const
 

Detailed Description

Insert an element in a view at a specific index using Kokkos::atomic_min.

To be used with e.g. Kokkos::UnorderedMap::insert.

Definition at line 16 of file InsertOp.hpp.

Member Function Documentation

◆ op()

template<concepts::View ViewType, std::integral IndexType, typename ValueType>
KOKKOS_FUNCTION void Kokkos::utils::atomics::InsertMin::op ( const ViewType & values,
const IndexType index,
ValueType && value ) const
inline

Definition at line 20 of file InsertOp.hpp.


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