This repository was archived by the owner on Apr 15, 2024. It is now read-only.
  
  
  - 
                Notifications
    You must be signed in to change notification settings 
- Fork 0
Kokkos::ValLocScalar
        Christian Trott edited this page May 1, 2020 
        ·
        1 revision
      
    Template class for storing a value plus index for min/max location reducers. Should be accessed via ::value_type defined for particular reducer.
Header File: Kokkos_Core.hpp
Usage:
MaxLoc<T,I,S>::value_type result;
parallel_reduce(N,Functor,MaxLoc<T,I,S>(result));
T resultValue = result.val;
I resultIndex = result.loc;.
template<class Scalar, class Index>
struct ValLocScalar{
    Scalar val;
    Index loc;
    void operator = (const ValLocScalar& rhs);
    void operator = (const volatile ValLocScalar& rhs);
};
## Public Members
### Variables
 
* `val`: Scalar Value.
* `loc`: Scalar index.
### Assignment operators
* `void operator = (const ValLocScalar& rhs);` 
    assign `val` and `loc` from `rhs`;
* `void operator = (const volatile ValLocScalar& rhs);` 
    assign `val` and `loc` from `rhs`;Home:
- Introduction
- Machine Model
- Programming Model
- Compiling
- Initialization
- View
- Parallel Dispatch
- Hierarchical Parallelism
- Custom Reductions
- Atomic Operations
- Subviews
- Interoperability
- Kokkos and Virtual Functions
- Initialization and Finalization
- View
- Data Parallelism
- Execution Policies
- Spaces
- Task Parallelism
- Utilities
- STL Compatibility
- Numerics
- Detection Idiom