|
53 | 53 | * Compute the one-dimensional discrete Fourier Transform.
|
54 | 54 | *
|
55 | 55 | * @param[in] q_ref Reference to SYCL queue.
|
56 |
| - * @param[in] array_in Input array. |
57 |
| - * @param[out] result Output array. |
| 56 | + * @param[in] array1_in Input array. |
| 57 | + * @param[out] result_out Output array. |
58 | 58 | * @param[in] input_shape Array with shape information for input array.
|
59 |
| - * @param[in] output_shape Array with shape information for output array. |
60 |
| - * @param[in] shape_size Number of elements in @ref input_shape or @ref output_shape arrays. |
| 59 | + * @param[in] result_shape Array with shape information for result array. |
| 60 | + * @param[in] shape_size Number of elements in @ref input_shape or @ref result_shape arrays. |
61 | 61 | * @param[in] axis Axis ID to compute by.
|
62 | 62 | * @param[in] input_boundarie Limit number of elements for @ref axis.
|
63 | 63 | * @param[in] inverse Using inverse algorithm.
|
64 | 64 | * @param[in] norm Normalization mode. 0 - backward, 1 - forward, 2 - ortho.
|
65 | 65 | * @param[in] dep_event_vec_ref Reference to vector of SYCL events.
|
66 | 66 | */
|
67 |
| -template <typename _DataType> |
| 67 | +template <typename _DataType_input, typename _DataType_output> |
68 | 68 | INP_DLLEXPORT DPCTLSyclEventRef dpnp_fft_fft_c(DPCTLSyclQueueRef q_ref,
|
69 |
| - const void* array_in, |
70 |
| - void* result, |
| 69 | + const void* array1_in, |
| 70 | + void* result_out, |
71 | 71 | const shape_elem_type* input_shape,
|
72 |
| - const shape_elem_type* output_shape, |
| 72 | + const shape_elem_type* result_shape, |
73 | 73 | size_t shape_size,
|
74 | 74 | long axis,
|
75 | 75 | long input_boundarie,
|
76 | 76 | size_t inverse,
|
77 | 77 | const size_t norm,
|
78 | 78 | const DPCTLEventVectorRef dep_event_vec_ref);
|
79 | 79 |
|
80 |
| -template <typename _DataType> |
81 |
| -INP_DLLEXPORT void dpnp_fft_fft_c(const void* array_in, |
82 |
| - void* result, |
| 80 | +template <typename _DataType_input, typename _DataType_output> |
| 81 | +INP_DLLEXPORT void dpnp_fft_fft_c(const void* array1_in, |
| 82 | + void* result_out, |
| 83 | + const shape_elem_type* input_shape, |
| 84 | + const shape_elem_type* output_shape, |
| 85 | + size_t shape_size, |
| 86 | + long axis, |
| 87 | + long input_boundarie, |
| 88 | + size_t inverse, |
| 89 | + const size_t norm); |
| 90 | + |
| 91 | + |
| 92 | +/** |
| 93 | + * @ingroup BACKEND_FFT_API |
| 94 | + * @brief 1D discrete Fourier Transform. |
| 95 | + * |
| 96 | + * Compute the one-dimensional discrete Fourier Transform for real input. |
| 97 | + * |
| 98 | + * @param[in] q_ref Reference to SYCL queue. |
| 99 | + * @param[in] array1_in Input array. |
| 100 | + * @param[out] result_out Output array. |
| 101 | + * @param[in] input_shape Array with shape information for input array. |
| 102 | + * @param[in] result_shape Array with shape information for result array. |
| 103 | + * @param[in] shape_size Number of elements in @ref input_shape or @ref result_shape arrays. |
| 104 | + * @param[in] axis Axis ID to compute by. |
| 105 | + * @param[in] input_boundarie Limit number of elements for @ref axis. |
| 106 | + * @param[in] inverse Using inverse algorithm. |
| 107 | + * @param[in] norm Normalization mode. 0 - backward, 1 - forward, 2 - ortho. |
| 108 | + * @param[in] dep_event_vec_ref Reference to vector of SYCL events. |
| 109 | + */ |
| 110 | +template <typename _DataType_input, typename _DataType_output> |
| 111 | +INP_DLLEXPORT DPCTLSyclEventRef dpnp_fft_rfft_c(DPCTLSyclQueueRef q_ref, |
| 112 | + const void* array1_in, |
| 113 | + void* result_out, |
| 114 | + const shape_elem_type* input_shape, |
| 115 | + const shape_elem_type* result_shape, |
| 116 | + size_t shape_size, |
| 117 | + long axis, |
| 118 | + long input_boundarie, |
| 119 | + size_t inverse, |
| 120 | + const size_t norm, |
| 121 | + const DPCTLEventVectorRef dep_event_vec_ref); |
| 122 | + |
| 123 | +template <typename _DataType_input, typename _DataType_output> |
| 124 | +INP_DLLEXPORT void dpnp_fft_fft_c(const void* array1_in, |
| 125 | + void* result_out, |
83 | 126 | const shape_elem_type* input_shape,
|
84 | 127 | const shape_elem_type* output_shape,
|
85 | 128 | size_t shape_size,
|
|
0 commit comments