Visible to Intel only — GUID: GUID-F4F924B2-647D-4454-A2E8-C25828ADA7A8
Visible to Intel only — GUID: GUID-F4F924B2-647D-4454-A2E8-C25828ADA7A8
oneapi::mkl::stats::mean
Description
Entry point to compute the arrays of mean values.
API
Syntax
Buffer API
template<method Method = method::fast, typename Type, layout ObservationsLayout>
void mean(sycl::queue& queue,
const dataset<ObservationsLayout, sycl::buffer<Type, 1>>& data,
sycl::buffer<Type, 1> mean);
USM API
template<method Method = method::fast, typename Type, layout ObservationsLayout>
sycl::event mean(sycl::queue& queue,
const dataset<ObservationsLayout, Type*>& data,
Type* mean,
const std::vector<sycl::event> &dependencies = {});
Include Files
oneapi/mkl/stats.hpp
Template Parameters
Name |
Description |
---|---|
oneapi::mkl::stats::method Method = oneapi::mkl::stats::method::fast |
Computation method. The specific values are as follows: oneapi::mkl::stats::method::fastoneapi::mkl::stats::method::one_pass |
Input Parameters
Name |
Type |
Description |
---|---|---|
queue |
sycl::queue& |
Valid sycl::queue, calls of the oneapi::mkl::stats::mean() routine submits kernels in this queue. |
data |
const dataset<ObservationsLayout, Type*>& |
Dataset which is used for estimates computation. |
Optional Input Parameter for USM API
Name |
Type |
Description |
---|---|---|
dependencies |
const std::vector<sycl::event>& |
List of events to wait for before starting computation, if any. |
Output Parameters
Buffer API
Name |
Type |
Description |
---|---|---|
mean |
sycl::buffer<Type, 1> |
sycl::buffer to the output array of mean values. |
USM API
Name |
Type |
Description |
---|---|---|
mean |
Type* |
Pointer to the output array of mean values. |
event |
sycl::event |
Function returns event after submitting task in sycl::queue. |