Skip to content

Commit 897cef6

Browse files
added standard normal declaration (#514)
* added standard normal declaration
1 parent 00f325f commit 897cef6

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

dpnp/backend/include/dpnp_iface.hpp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -897,41 +897,42 @@ INP_DLLEXPORT void dpnp_rng_standard_cauchy_c(void* result, size_t size);
897897

898898
/**
899899
* @ingroup BACKEND_API
900-
* @brief math library implementation of random number generator (standard normal distribution)
900+
* @brief math library implementation of random number generator (standard exponential distribution)
901901
*
902902
* @param [in] size Number of elements in `result` arrays.
903903
*
904904
* @param [out] result Output array.
905905
*
906906
*/
907907
template <typename _DataType>
908-
INP_DLLEXPORT void dpnp_rng_standard_normal_c(void* result, size_t size);
908+
INP_DLLEXPORT void dpnp_rng_standard_exponential_c(void* result, size_t size);
909909

910910
/**
911911
* @ingroup BACKEND_API
912-
* @brief math library implementation of random number generator (standard exponential distribution)
912+
* @brief math library implementation of random number generator (standard gamma distribution)
913913
*
914914
* @param [in] size Number of elements in `result` arrays.
915915
*
916+
* @param [in] shape Shape value.
917+
*
916918
* @param [out] result Output array.
917919
*
918920
*/
919921
template <typename _DataType>
920-
INP_DLLEXPORT void dpnp_rng_standard_exponential_c(void* result, size_t size);
922+
INP_DLLEXPORT void dpnp_rng_standard_gamma_c(void* result, _DataType shape, size_t size);
923+
921924

922925
/**
923926
* @ingroup BACKEND_API
924-
* @brief math library implementation of random number generator (standard gamma distribution)
927+
* @brief math library implementation of random number generator (standard normal distribution)
925928
*
926929
* @param [in] size Number of elements in `result` arrays.
927930
*
928-
* @param [in] shape Shape value.
929-
*
930931
* @param [out] result Output array.
931932
*
932933
*/
933934
template <typename _DataType>
934-
INP_DLLEXPORT void dpnp_rng_standard_gamma_c(void* result, _DataType shape, size_t size);
935+
INP_DLLEXPORT void dpnp_rng_standard_normal_c(void* result, size_t size);
935936

936937
/**
937938
* @ingroup BACKEND_API

0 commit comments

Comments
 (0)