oneapi::mkl::stats::raw_sum¶
Description¶
Entry point to compute arrays of raw sums up to the 4th order.
API¶
Syntax¶
Buffer API
template<method Method = method::fast, typename Type, layout ObservationsLayout>
void raw_sum(sycl::queue& queue,
const dataset<ObservationsLayout, sycl::buffer<Type, 1>>& data,
sycl::buffer<Type, 1> sum,
sycl::buffer<Type, 1> raw_sum_2 = {0},
sycl::buffer<Type, 1> raw_sum_3 = {0},
sycl::buffer<Type, 1> raw_sum_4 = {0});
USM API
template<method Method = method::fast, typename Type, layout ObservationsLayout>
sycl::event max(
sycl::queue& queue,
const dataset<ObservationsLayout, Type*>& data,
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 Parameters 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 |
---|---|---|
sum |
|
|
raw_sum_2 |
|
|
raw_sum_3 |
|
|
raw_sum_4 |
|
|
USM API
Name |
Type |
Description |
---|---|---|
sum |
|
Pointer to the output array of sum. |
raw_sum_2 |
|
Pointer to the output array of raw sums of the 2nd order (optional). |
raw_sum_3 |
|
Pointer to the output array of raw sums of the 3rd order (optional). |
raw_sum_4 |
|
Pointer to the output array of raw sums of the 4th order (optional). |
event |
|
Function returns event after submitting task in |