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