|
1 | 1 | //***************************************************************************** |
2 | | -// Copyright (c) 2016-2020, Intel Corporation |
| 2 | +// Copyright (c) 2016-2022, Intel Corporation |
3 | 3 | // All rights reserved. |
4 | 4 | // |
5 | 5 | // Redistribution and use in source and binary forms, with or without |
@@ -438,18 +438,20 @@ INP_DLLEXPORT void |
438 | 438 | * @brief math library implementation of random number generator (normal continious distribution) |
439 | 439 | * |
440 | 440 | * @param [in] q_ref Reference to SYCL queue. |
441 | | - * @param [out] result Output array. |
| 441 | + * @param [out] result_out Output array. |
442 | 442 | * @param [in] mean Mean value. |
443 | 443 | * @param [in] stddev Standard deviation. |
444 | 444 | * @param [in] size Number of elements in `result` arrays. |
| 445 | + * @param [in] random_state_in Pointer on random state. |
445 | 446 | * @param [in] dep_event_vec_ref Reference to vector of SYCL events. |
446 | 447 | */ |
447 | 448 | template <typename _DataType> |
448 | 449 | INP_DLLEXPORT DPCTLSyclEventRef dpnp_rng_normal_c(DPCTLSyclQueueRef q_ref, |
449 | | - void* result, |
450 | | - const _DataType mean, |
451 | | - const _DataType stddev, |
452 | | - const size_t size, |
| 450 | + void* result_out, |
| 451 | + const double mean, |
| 452 | + const double stddev, |
| 453 | + const int64_t size, |
| 454 | + void* random_state_in, |
453 | 455 | const DPCTLEventVectorRef dep_event_vec_ref); |
454 | 456 |
|
455 | 457 | template <typename _DataType> |
@@ -629,17 +631,11 @@ INP_DLLEXPORT void dpnp_rng_standard_gamma_c(void* result, const _DataType shape |
629 | 631 | * @brief math library implementation of random number generator (standard normal distribution) |
630 | 632 | * |
631 | 633 | * @param [in] q_ref Reference to SYCL queue. |
632 | | - * @param [out] result Output array. |
| 634 | + * @param [out] result_out Output array. |
633 | 635 | * @param [in] size Number of elements in `result` arrays. |
634 | 636 | * @param [in] dep_event_vec_ref Reference to vector of SYCL events. |
635 | 637 | */ |
636 | 638 | template <typename _DataType> |
637 | | -INP_DLLEXPORT DPCTLSyclEventRef dpnp_rng_standard_normal_c(DPCTLSyclQueueRef q_ref, |
638 | | - void* result, |
639 | | - const size_t size, |
640 | | - const DPCTLEventVectorRef dep_event_vec_ref); |
641 | | - |
642 | | -template <typename _DataType> |
643 | 639 | INP_DLLEXPORT void dpnp_rng_standard_normal_c(void* result, const size_t size); |
644 | 640 |
|
645 | 641 | /** |
@@ -692,18 +688,20 @@ INP_DLLEXPORT void dpnp_rng_triangular_c( |
692 | 688 | * @brief math library implementation of random number generator (uniform distribution) |
693 | 689 | * |
694 | 690 | * @param [in] q_ref Reference to SYCL queue. |
695 | | - * @param [out] result Output array. |
| 691 | + * @param [out] result_out Output array. |
696 | 692 | * @param [in] low Left bound of array values. |
697 | 693 | * @param [in] high Right bound of array values. |
698 | 694 | * @param [in] size Number of elements in `result` array. |
| 695 | + * @param [in] random_state_in Pointer on random state. |
699 | 696 | * @param [in] dep_event_vec_ref Reference to vector of SYCL events. |
700 | 697 | */ |
701 | 698 | template <typename _DataType> |
702 | 699 | INP_DLLEXPORT DPCTLSyclEventRef dpnp_rng_uniform_c(DPCTLSyclQueueRef q_ref, |
703 | | - void* result, |
704 | | - const long low, |
705 | | - const long high, |
706 | | - const size_t size, |
| 700 | + void* result_out, |
| 701 | + const double low, |
| 702 | + const double high, |
| 703 | + const int64_t size, |
| 704 | + void* random_state_in, |
707 | 705 | const DPCTLEventVectorRef dep_event_vec_ref); |
708 | 706 |
|
709 | 707 | template <typename _DataType> |
|
0 commit comments