Skip to content

Commit 7800fd4

Browse files
author
aidan.belton
committed
Remove const
1 parent c11762c commit 7800fd4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

sycl/doc/extensions/proposed/sycl_ext_oneapi_complex_marray.asciidoc

Lines changed: 8 additions & 8 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, 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(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);
@@ -160,10 +160,10 @@ namespace oneapi {
160160
void set_imag(marray<sycl::ext::oneapi::complex<T>, NumElements> &input, const marray<T, NumElements> &values);
161161

162162
template <class T, std::size_t NumElements>
163-
void set_real(marray<sycl::ext::oneapi::complex<T>, NumElements> &input, const T value);
163+
void set_real(marray<sycl::ext::oneapi::complex<T>, NumElements> &input, T value);
164164

165165
template <class T, std::size_t NumElements>
166-
void set_imag(marray<sycl::ext::oneapi::complex<T>, NumElements> &input, const T value);
166+
void set_imag(marray<sycl::ext::oneapi::complex<T>, NumElements> &input, T value);
167167

168168
} // namespace oneapi
169169
} // namespace ext
@@ -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, 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(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, 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, genfloat y);`
214214
|Set each element of the imaginary components in x to the decimal number y.
215215
|===
216216

0 commit comments

Comments
 (0)