.. _oneapi-mkl-stats-make_dataset: oneapi::mkl::stats::make_dataset ================================ .. contents:: :local: :depth: 1 Description *********** Entry point to create a dataset from the provided parameters. API *** Syntax ------ **Buffer API** .. code-block:: template dataset> make_dataset(std::int64_t n_dims, std::int64_t n_observations, sycl::buffer observations, sycl::buffer weights = {0}, sycl::buffer indices = {0}); **USM API** .. code-block:: cpp template dataset make_dataset(std::int64_t n_dims, std::int64_t n_observations, Type* observations, Type* weights = nullptr, std::int64_t* indices = nullptr); Include Files ------------- - oneapi/mkl/stats.hpp Template Parameters ------------------- .. tabularcolumns:: |\Y{0.5}|\Y{0.5}| .. list-table:: :header-rows: 0 * - \ ``typename DataType``\ - Type of dataset. May be ``float``, ``double``. * - \ ``oneapi::mkl::stats::layout ObservationsLayout``\ - Layout of the observations matrix of the dataset. The specific values are as follows: \ ``oneapi::mkl::stats::layout::row_major``\ \ ``oneapi::mkl::stats::layout::col_major``\ Input Parameters ---------------- .. tabularcolumns:: |\Y{0.2}|\Y{0.4}|\Y{0.4}| .. list-table:: :header-rows: 1 * - Name - Type - Description * - n_dims - \ ``std::int64_t``\ - The number of dimensions (variables) * - n_observations - \ ``std::int64_t``\ - The number of observations * - observations - \ ``sycl::buffer / Type*``\ - Matrix of observations **Optional Input Parameters** .. list-table:: :header-rows: 1 * - Name - Type - Description * - weights - \ ``sycl::buffer / Type*``\ - Array of weights of size n_observations. Elements of the arrays are non-negative numbers. If the parameter is not specified, each observation is assigned weight equal to 1. * - indices - \ ``sycl::buffer / std::int64_t*``\ - Array of vector components that will be processed. Size of array is ``n_dims``. If the parameter is not specified, all components of the random vector are processed. Return Type ----------- **Buffer API** .. list-table:: :header-rows: 0 * - \ ``oneapi::mkl::stats::dataset>``\ - Dataset holding specified parameters **USM API** .. list-table:: :header-rows: 0 * - \ ``oneapi::mkl::stats::dataset``\ - Dataset holding specified parameters