@@ -269,24 +269,23 @@ public:
269
269
/// Divides and assigns complex number rhs to marray lhs.
270
270
friend marray &operator /=(marray &lhs, const value_type &rhs);
271
271
272
- /// Returns a copy of the input marray.
273
- friend marray operator +(const marray &lhs);
274
- /// Negates each element of the input marray.
275
- friend marray operator -(const marray &lhs);
276
-
277
272
/// Adds marray rhs and marray lhs and returns the result.
278
273
friend marray operator +(const marray &lhs, const marray &rhs);
279
274
/// Adds complex number rhs and marray lhs and returns the result.
280
275
friend marray operator +(const marray &lhs, const value_type &rhs);
281
276
/// Adds marray rhs and complex number lhs and returns the result.
282
277
friend marray operator +(const value_type &lhs, const marray &rhs);
278
+ /// Returns a copy of the input marray.
279
+ friend marray operator +(const marray &lhs);
283
280
284
281
/// Subtracts marray rhs and marray lhs and returns the result.
285
282
friend marray operator -(const marray &lhs, const marray &rhs);
286
283
/// Subtracts complex number rhs and marray lhs and returns the result.
287
284
friend marray operator -(const marray &lhs, const value_type &rhs);
288
285
/// Subtracts marray rhs and complex number lhs and returns the result.
289
286
friend marray operator -(const value_type &lhs, const marray &rhs);
287
+ /// Negates each element of the input marray.
288
+ friend marray operator -(const marray &lhs);
290
289
291
290
/// Mulitplies marray rhs and marray lhs and returns the result.
292
291
friend marray operator *(const marray &lhs, const marray &rhs);
@@ -318,25 +317,42 @@ public:
318
317
319
318
/* ... */
320
319
321
- friend marray operator %(const marray &lhs, const marray &rhs) = delete;
322
- friend marray operator %(const marray &lhs, const value_type &rhs) = delete;
323
- friend marray operator %(const value_type &lhs, const marray &rhs) = delete;
324
-
325
320
friend marray &operator %=(marray &lhs, const marray &rhs) = delete;
326
321
friend marray &operator %=(marray &lhs, const value_type &rhs) = delete;
327
322
328
- friend marray operator ++(marray &lhs, int) = delete;
323
+ friend marray &operator &=(marray &lhs, const marray &rhs) = delete;
324
+ friend marray &operator &=(marray &lhs, const value_type &rhs) = delete;
325
+
326
+ friend marray &operator |=(marray &lhs, const marray &rhs) = delete;
327
+ friend marray &operator |=(marray &lhs, const value_type &rhs) = delete;
328
+
329
+ friend marray &operator ^=(marray &lhs, const marray &rhs) = delete;
330
+ friend marray &operator ^=(marray &lhs, const value_type &rhs) = delete;
331
+
332
+ friend marray &operator <<=(marray &lhs, const marray &rhs) = delete;
333
+ friend marray &operator <<=(marray &lhs, const value_type &rhs) = delete;
334
+
335
+ friend marray &operator >>=(marray &lhs, const marray &rhs) = delete;
336
+ friend marray &operator >>=(marray &lhs, const value_type &rhs) = delete;
337
+
329
338
friend marray &operator ++(marray &lhs) = delete;
339
+ friend marray operator ++(marray &lhs, int) = delete;
330
340
331
- friend marray operator --(marray &lhs, int) = delete;
332
341
friend marray &operator --(marray &lhs) = delete;
342
+ friend marray operator --(marray &lhs, int) = delete;
333
343
334
344
friend marray &operator +=(marray &lhs) = delete;
335
345
friend marray operator +=(marray &lhs, int) = delete;
336
346
337
347
friend marray &operator -=(marray &lhs) = delete;
338
348
friend marray operator -=(marray &lhs, int) = delete;
339
349
350
+ friend marray operator %(const marray &lhs, const marray &rhs) = delete;
351
+ friend marray operator %(const marray &lhs, const value_type &rhs) = delete;
352
+ friend marray operator %(const value_type &lhs, const marray &rhs) = delete;
353
+
354
+ friend marray operator ~(const marray &lhs) = delete;
355
+
340
356
friend marray operator &(const marray &lhs, const marray &rhs) = delete;
341
357
friend marray operator &(const marray &lhs, const value_type &rhs) = delete;
342
358
friend marray operator &(const value_type &lhs, const marray &rhs) = delete;
@@ -349,15 +365,6 @@ public:
349
365
friend marray operator ^(const marray &lhs, const value_type &rhs) = delete;
350
366
friend marray operator ^(const value_type &lhs, const marray &rhs) = delete;
351
367
352
- friend marray &operator &=(marray &lhs, const marray &rhs) = delete;
353
- friend marray &operator &=(marray &lhs, const value_type &rhs) = delete;
354
-
355
- friend marray &operator |=(marray &lhs, const marray &rhs) = delete;
356
- friend marray &operator |=(marray &lhs, const value_type &rhs) = delete;
357
-
358
- friend marray &operator ^=(marray &lhs, const marray &rhs) = delete;
359
- friend marray &operator ^=(marray &lhs, const value_type &rhs) = delete;
360
-
361
368
friend marray<bool, NumElements> operator <<(const marray &lhs, const marray &rhs) = delete;
362
369
friend marray<bool, NumElements> operator <<(const marray &lhs, const value_type &rhs) = delete;
363
370
friend marray<bool, NumElements> operator <<(const value_type &lhs, const marray &rhs) = delete;
@@ -366,11 +373,15 @@ public:
366
373
friend marray<bool, NumElements> operator >>(const marray &lhs, const value_type &rhs) = delete;
367
374
friend marray<bool, NumElements> operator >>(const value_type &lhs, const marray &rhs) = delete;
368
375
369
- friend marray &operator <<=(marray &lhs, const marray &rhs) = delete;
370
- friend marray &operator <<=(marray &lhs, const value_type &rhs) = delete;
376
+ friend marray<bool, NumElements> operator !(const marray &lhs) = delete;
371
377
372
- friend marray &operator >>=(marray &lhs, const marray &rhs) = delete;
373
- friend marray &operator >>=(marray &lhs, const value_type &rhs) = delete;
378
+ friend marray<bool, NumElements> operator &&(const marray &lhs, const marray &hhs) = delete;
379
+ friend marray<bool, NumElements> operator &&(const marray &lhs, const value_type &rhs) = delete;
380
+ friend marray<bool, NumElements> operator &&(const value_type &lhs, const marray &rhs) = delete;
381
+
382
+ friend marray<bool, NumElements> operator ||(const marray &lhs, const marray &rhs) = delete;
383
+ friend marray<bool, NumElements> operator ||(const marray &lhs, const value_type &rhs) = delete;
384
+ friend marray<bool, NumElements> operator ||(const value_type &lhs, const marray &rhs) = delete;
374
385
375
386
friend marray<bool, NumElements> operator <(const marray &lhs, const marray &rhs) = delete;
376
387
friend marray<bool, NumElements> operator <(const marray &lhs, const value_type &rhs) = delete;
@@ -387,18 +398,6 @@ public:
387
398
friend marray<bool, NumElements> operator >=(const marray &lhs, const marray &rhs) = delete;
388
399
friend marray<bool, NumElements> operator >=(const marray &lhs, const value_type &rhs) = delete;
389
400
friend marray<bool, NumElements> operator >=(const value_type &lhs, const marray &rhs) = delete;
390
-
391
- friend marray<bool, NumElements> operator &&(const marray &lhs, const marray &hhs) = delete;
392
- friend marray<bool, NumElements> operator &&(const marray &lhs, const value_type &rhs) = delete;
393
- friend marray<bool, NumElements> operator &&(const value_type &lhs, const marray &rhs) = delete;
394
-
395
- friend marray<bool, NumElements> operator ||(const marray &lhs, const marray &rhs) = delete;
396
- friend marray<bool, NumElements> operator ||(const marray &lhs, const value_type &rhs) = delete;
397
- friend marray<bool, NumElements> operator ||(const value_type &lhs, const marray &rhs) = delete;
398
-
399
- friend marray operator ~(const marray &lhs) = delete;
400
-
401
- friend marray<bool, NumElements> operator !(const marray &lhs) = delete;
402
401
};
403
402
404
403
} // namespace sycl
0 commit comments