kokkos-execution 0.0.1
Loading...
Searching...
No Matches
Tests::Utils::Functors::MaxLoc< DataType > Struct Template Reference

Can be used in a parallel_reduce to find the greater of the values in data alongside its index. More...

#include <maxloc.hpp>

Public Member Functions

template<std::integral IndexType, typename ValueType>
void operator() (const IndexType index, ValueType &current) const noexcept

Public Attributes

DataType::const_type data

Detailed Description

template<typename DataType>
struct Tests::Utils::Functors::MaxLoc< DataType >

Can be used in a parallel_reduce to find the greater of the values in data alongside its index.

Definition at line 15 of file maxloc.hpp.

Member Function Documentation

◆ operator()()

template<typename DataType>
template<std::integral IndexType, typename ValueType>
void Tests::Utils::Functors::MaxLoc< DataType >::operator() ( const IndexType index,
ValueType & current ) const
inlinenoexcept

Definition at line 19 of file maxloc.hpp.

References data.

Member Data Documentation

◆ data

template<typename DataType>
DataType::const_type Tests::Utils::Functors::MaxLoc< DataType >::data

Definition at line 16 of file maxloc.hpp.


The documentation for this struct was generated from the following file:
  • /__w/kokkos-execution/kokkos-execution/tests/utils/functors/maxloc.hpp