oneapi::mkl::stats::min_max#
Description#
Entry point to compute the array of minimum and maximum values simultaneously.
Mathematical Notation#
Vector of maximum values:
\(\max(X) = \left( {\max}_1(X), \; \dots, {\max}_p(X) \right)\)
Vector of minimum values:
\(\min(X) = \left( {\min}_1(X), \; \dots, {\min}_p(X) \right)\)
Where:
\(i = 1, \dots, p\)
Syntax#
Buffer API
template<method Method = method::fast, typename Type, layout ObservationsLayout>
void min_max(sycl::queue& queue,
const dataset<ObservationsLayout, sycl::buffer<Type, 1>>& data,
sycl::buffer<Type, 1> min, sycl::buffer<Type, 1> max);
USM API
template<method Method = method::fast, typename Type, layout ObservationsLayout>
sycl::event min_max(sycl::queue& queue,
const dataset<ObservationsLayout, Type*>& data,
Type* min, Type* max,
const std::vector<sycl::event> &dependencies = {});
Include Files#
oneapi/mkl/stats.hpp
Template Parameters#
Name |
Description |
|---|---|
|
Computation method. The specific values are as follows: |
Input Parameters#
Name |
Type |
Description |
|---|---|---|
queue |
|
Valid |
data |
|
Dataset which is used for estimates computation. |
Optional Input Parameter for USM API
Name |
Type |
Description |
|---|---|---|
dependencies |
|
List of events to wait for before starting computation, if any. |
Output Parameters#
Buffer API
Name |
Type |
Description |
|---|---|---|
min |
|
|
max |
|
|
USM API
Name |
Type |
Description |
|---|---|---|
min |
|
Pointer to the output array of minimum values. |
max |
|
Pointer to the output array of maximum values. |
event |
|
Function returns event after submitting task in |