This repository has been 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::MinMaxLocScalar
Christian Trott edited this page May 1, 2020
·
1 revision
Template class for storing the min and max values with indices for min/max location reducers. Should be accessed via ::value_type defined for particular reducer.
Header File: Kokkos_Core.hpp
Usage:
MinMaxLoc<T,I,S>::value_type result;
parallel_reduce(N,Functor,MinMaxLoc<T,I,S>(result));
T minValue = result.min_val;
T maxValue = result.max_val;
I minLoc = result.min_loc;
I maxLoc = result.max_loc;
.
template<class Scalar>
struct MinMaxLocScalar{
Scalar min_val;
Scalar max_val;
Index min_loc;
Index max_loc;
void operator = (const MinMaxLocScalar& rhs);
void operator = (const volatile MinMaxLocScalar& rhs);
};
## Public Members
### Variables
* `min_val`: Scalar minimum Value.
* `max_val`: Scalar maximum Value.
* `min_loc`: minimum location(Index).
* `max_loc`: maximum location(Index).
### Assignment operators
* `void operator = (const MinMaxLocScalar& rhs);`
assign `min_val`, `max_val`, `min_loc` and `max_loc` from `rhs`;
* `void operator = (const volatile MinMaxLocScalar& rhs);`
assign `min_val`, `max_val`, `min_loc` and `max_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