Entry point to compute arrays of raw sums up to the 4th order.
Buffer API
template<method Method = method::fast, typename Type, layout ObservationsLayout> void raw_sum(sycl::queue& queue, const dataset<sycl::buffer<Type, 1>, ObservationsLayout>& 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<Type*, ObservationsLayout>& data, 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 mkl::stats::method::one_pass |
Name |
Type |
Description |
---|---|---|
queue |
sycl::queue& |
Valid sycl::queue, calls of the mkl::stats::raw_sum() routine submits kernels in this queue. |
data |
const dataset<Type*, ObservationsLayout>& |
Dataset which is used for estimates computation. |
Optional Input Parameters 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 |
---|---|---|
sum |
sycl::buffer<Type, 1> |
sycl::buffer to the output array of sum. |
raw_sum_2 |
sycl::buffer<Type, 1> |
sycl::buffer to the output array of raw sums of the 2nd order (optional). |
raw_sum_3 |
sycl::buffer<Type, 1> |
sycl::buffer to the output array of raw sums of the 3rd order (optional). |
raw_sum_4 |
sycl::buffer<Type, 1> |
sycl::buffer to the output array of raw sums of the 4th order (optional). |
USM API
Name |
Type |
Description |
---|---|---|
sum |
Type* |
Pointer to the output array of sum. |
raw_sum_2 |
Type* |
Pointer to the output array of raw sums of the 2nd order (optional). |
raw_sum_3 |
Type* |
Pointer to the output array of raw sums of the 3rd order (optional). |
raw_sum_4 |
Type* |
Pointer to the output array of raw sums of the 4th order (optional). |
event |
sycl::event |
Function returns event after submitting task in sycl::queue. |