.. _oneapi-mkl-stats-raw_sum: oneapi::mkl::stats::raw_sum =========================== .. contents:: :local: :depth: 1 Description *********** Entry point to compute arrays of raw sums up to the 4th order. API *** Syntax ------ **Buffer API** .. code-block:: template void raw_sum(sycl::queue& queue, const dataset>& data, sycl::buffer sum, sycl::buffer raw_sum_2 = {0}, sycl::buffer raw_sum_3 = {0}, sycl::buffer raw_sum_4 = {0}); **USM API** .. code-block:: template sycl::event max( sycl::queue& queue, const dataset& data, Type* max, const std::vector &dependencies = {}); Include Files ------------- - oneapi/mkl/stats.hpp Template Parameters ------------------- .. list-table:: :header-rows: 1 * - Name - Description * - \ ``oneapi::mkl::stats::method Method = oneapi::mkl::stats::method::fast``\ - Computation method. The specific values are as follows: \ ``oneapi::mkl::stats::method::fast``\ \ ``oneapi::mkl::stats::method::one_pass``\ Input Parameters ---------------- .. tabularcolumns:: |\Y{0.2}|\Y{0.4}|\Y{0.4}| .. list-table:: :header-rows: 1 * - Name - Type - Description * - queue - \ ``sycl::queue&``\ - Valid ``sycl::queue``, calls of the ``oneapi::mkl::stats::raw_sum()`` routine submits kernels in this queue. * - data - \ ``const dataset&``\ - Dataset which is used for estimates computation. **Optional Input Parameters for USM API** .. list-table:: :header-rows: 1 * - Name - Type - Description * - dependencies - \ ``const std::vector &``\ - List of events to wait for before starting computation, if any. Output Parameters ----------------- **Buffer API** .. list-table:: :header-rows: 1 * - Name - Type - Description * - sum - \ ``sycl::buffer``\ - \ ``sycl::buffer`` to the output array of sum. * - raw_sum_2 - \ ``sycl::buffer``\ - \ ``sycl::buffer`` to the output array of raw sums of the 2nd order (optional). * - raw_sum_3 - \ ``sycl::buffer``\ - \ ``sycl::buffer`` to the output array of raw sums of the 3rd order (optional). * - raw_sum_4 - \ ``sycl::buffer``\ - \ ``sycl::buffer`` to the output array of raw sums of the 4th order (optional). **USM API** .. list-table:: :header-rows: 1 * - 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.``\