Entry point to compute the array of minimum and maximum values simultaneously.
Buffer API
template<method Method = method::fast, typename Type, layout ObservationsLayout> void min_max(sycl::queue& queue, const dataset<sycl::buffer<Type, 1>, ObservationsLayout>& 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<Type*, ObservationsLayout>& data, Type* min, Type* max, const sycl::vector_class<sycl::event> &dependencies = {});
mkl::stats::method Method = mkl::stats::method::fast |
Computation method. The specific values are as follows: mkl::stats::method::fast |
Name |
Type |
Description |
---|---|---|
queue |
sycl::queue& |
Valid sycl::queue, calls of the mkl::stats::min_max() routine submits kernels in this queue. |
data |
const dataset<Type*, ObservationsLayout>& |
Dataset which is used for estimates computation. |
Optional Input Parameter for USM API
Name |
Type |
Description |
---|---|---|
dependencies |
const sycl::vector_class<sycl::event>& |
List of events to wait for before starting computation, if any. |
Buffer API
Name |
Type |
Description |
---|---|---|
min |
sycl::buffer<Type, 1> |
sycl::buffer to the output array of minimum values. |
max |
sycl::buffer<Type, 1> |
sycl::buffer to the output array of maximum values. |
USM API
Name |
Type |
Description |
---|---|---|
min |
Type* |
Pointer to the output array of minimum values. |
max |
Type* |
Pointer to the output array of maximum values. |
event |
sycl::event |
Function returns event after submitting task in sycl::queue. |