Skip to content

Enable Compute Follows Data in Cython in random #1137

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions dpnp/backend/include/dpnp_iface_random.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,23 +335,23 @@ INP_DLLEXPORT void dpnp_rng_lognormal_c(void* result, const _DataType mean, cons
* @param [in] q_ref Reference to SYCL queue.
* @param [out] result Output array.
* @param [in] ntrial Number of independent trials.
* @param [in] p_vector Probability vector of possible outcomes (k length).
* @param [in] p_vector_size Length of `p_vector`.
* @param [in] p_in Probability of possible outcomes (k length).
* @param [in] p_size Length of `p_in`.
* @param [in] size Number of elements in `result` arrays.
* @param [in] dep_event_vec_ref Reference to vector of SYCL events.
*/
template <typename _DataType>
INP_DLLEXPORT DPCTLSyclEventRef dpnp_rng_multinomial_c(DPCTLSyclQueueRef q_ref,
void* result,
const int ntrial,
const double* p_vector,
const size_t p_vector_size,
const double* p_in,
const size_t p_size,
const size_t size,
const DPCTLEventVectorRef dep_event_vec_ref);

template <typename _DataType>
INP_DLLEXPORT void dpnp_rng_multinomial_c(
void* result, const int ntrial, const double* p_vector, const size_t p_vector_size, const size_t size);
void* result, const int ntrial, const double* p_in, const size_t p_size, const size_t size);

/**
* @ingroup BACKEND_RANDOM_API
Expand All @@ -360,31 +360,31 @@ INP_DLLEXPORT void dpnp_rng_multinomial_c(
* @param [in] q_ref Reference to SYCL queue.
* @param [out] result Output array.
* @param [in] dimen Dimension of output random vectors.
* @param [in] mean_vector Mean vector a of dimension.
* @param [in] mean_vector_size Length of `mean_vector`.
* @param [in] cov_vector Variance-covariance matrix.
* @param [in] cov_vector_size Length of `cov_vector`.
* @param [in] mean_in Mean arry of dimension.
* @param [in] mean_size Length of `mean_in`.
* @param [in] cov Variance-covariance matrix.
* @param [in] cov_size Length of `cov_in`.
* @param [in] size Number of elements in `result` arrays.
* @param [in] dep_event_vec_ref Reference to vector of SYCL events.
*/
template <typename _DataType>
INP_DLLEXPORT DPCTLSyclEventRef dpnp_rng_multivariate_normal_c(DPCTLSyclQueueRef q_ref,
void* result,
const int dimen,
const double* mean_vector,
const size_t mean_vector_size,
const double* cov_vector,
const size_t cov_vector_size,
const double* mean_in,
const size_t mean_size,
const double* cov_in,
const size_t cov_size,
const size_t size,
const DPCTLEventVectorRef dep_event_vec_ref);

template <typename _DataType>
INP_DLLEXPORT void dpnp_rng_multivariate_normal_c(void* result,
const int dimen,
const double* mean_vector,
const size_t mean_vector_size,
const double* cov_vector,
const size_t cov_vector_size,
const double* mean_in,
const size_t mean_size,
const double* cov_in,
const size_t cov_size,
const size_t size);

/**
Expand Down
Loading