tmp/tmpxfmluixv/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#### *`conj-if-needed`* <a id="linalg.helpers.conj">[[linalg.helpers.conj]]</a>
|
| 2 |
+
|
| 3 |
+
The name *`conj-if-needed`* denotes an exposition-only function object.
|
| 4 |
+
The expression `conj-if-needed(E)` for a subexpression `E` whose type is
|
| 5 |
+
`T` is expression-equivalent to:
|
| 6 |
+
|
| 7 |
+
- `conj(E)`, if `T` is not an arithmetic type and the expression
|
| 8 |
+
`conj(E)` is valid, with overload resolution performed in a context
|
| 9 |
+
that includes the declaration
|
| 10 |
+
``` cpp
|
| 11 |
+
template<class U> U conj(const U&) = delete;
|
| 12 |
+
```
|
| 13 |
+
|
| 14 |
+
If the function selected by overload resolution does not return the
|
| 15 |
+
complex conjugate of its input, the program is ill-formed, no
|
| 16 |
+
diagnostic required;
|
| 17 |
+
- otherwise, `E`.
|
| 18 |
+
|