Skip to content

Commit c11762c

Browse files
author
aidan.belton
committed
Remove genfloat pass by reference
1 parent 0fe2418 commit c11762c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sycl/doc/extensions/proposed/sycl_ext_oneapi_complex_marray.asciidoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,10 @@ namespace oneapi {
124124
marray<sycl::ext::oneapi::complex<T>, NumElements> make_complex_marray(const marray<T, NumElements> &real, const marray<T, NumElements> &imag);
125125

126126
template <class T, std::size_t NumElements>
127-
marray<sycl::ext::oneapi::complex<T>, NumElements> make_complex_marray(const marray<T, NumElements> &real, const T &imag);
127+
marray<sycl::ext::oneapi::complex<T>, NumElements> make_complex_marray(const marray<T, NumElements> &real, const T imag);
128128

129129
template <class T, std::size_t NumElements>
130-
marray<sycl::ext::oneapi::complex<T>, NumElements> make_complex_marray(const T &real, const marray<T, NumElements> &imag);
130+
marray<sycl::ext::oneapi::complex<T>, NumElements> make_complex_marray(const T real, const marray<T, NumElements> &imag);
131131

132132
template <class T, std::size_t NumElements, std::size_t... I>
133133
marray<sycl::ext::oneapi::complex<T>, NumElements> make_complex_marray(const marray<T, NumElements> &real, const marray<T, NumElements> &imag, std::integer_sequence<std::size_t, I...> int_seq);
@@ -188,9 +188,9 @@ proposed.
188188

189189
|`mgencomplex make_complex_marray(const mgenfloat& x, const mgenfloat& y);`
190190
|Constructs a marray of complex numbers with real values in marray x, and the imaginary values in marray y.
191-
|`mgencomplex make_complex_marray(const mgenfloat& x, const genfloat& y);`
191+
|`mgencomplex make_complex_marray(const mgenfloat& x, const genfloat y);`
192192
|Constructs a marray of complex numbers with real values in marray x, and the imaginary value y.
193-
|`mgencomplex make_complex_marray(const genfloat& x, const mgenfloat& y);`
193+
|`mgencomplex make_complex_marray(const genfloat x, const mgenfloat& y);`
194194
|Constructs a marray of complex numbers with real value x, and the imaginary values in marray y.
195195
|`mgencomplex make_complex_marray(const mgenfloat& x, const mgenfloat& y, std::integer_sequence int_seq);`
196196
|Constructs a marray of complex numbers from real values in marray x, and the imaginary values in marray y. Each element should be constructed from the corresponding index within `int_seq` and the returned marray size should be the same as the `int_seq` size.
@@ -208,9 +208,9 @@ proposed.
208208
|Set each element of the real components in x to the corresponding element in y.
209209
|`void set_imag(mgencomplex& x, const mgenfloat& y);`
210210
|Set each element of the imaginary components in x to the corresponding element in y.
211-
|`void set_real(mgencomplex& x, const genfloat& y);`
211+
|`void set_real(mgencomplex& x, const genfloat y);`
212212
|Set each element of the real components in x to the decimal number y.
213-
|`void set_imag(mgencomplex& x, const genfloat& y);`
213+
|`void set_imag(mgencomplex& x, const genfloat y);`
214214
|Set each element of the imaginary components in x to the decimal number y.
215215
|===
216216

0 commit comments

Comments
 (0)