From Jason Turner

[simd.complex.math]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpb63vmesm/{from.md → to.md} +61 -0
tmp/tmpb63vmesm/{from.md → to.md} RENAMED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Complex math <a id="simd.complex.math">[[simd.complex.math]]</a>
2
+
3
+ ``` cpp
4
+ template<simd-complex V>
5
+ constexpr rebind_t<simd-complex-value-type<V>, V> real(const V&) noexcept;
6
+ template<simd-complex V>
7
+ constexpr rebind_t<simd-complex-value-type<V>, V> imag(const V&) noexcept;
8
+
9
+ template<simd-complex V>
10
+ constexpr rebind_t<simd-complex-value-type<V>, V> abs(const V&);
11
+ template<simd-complex V>
12
+ constexpr rebind_t<simd-complex-value-type<V>, V> arg(const V&);
13
+ template<simd-complex V>
14
+ constexpr rebind_t<simd-complex-value-type<V>, V> norm(const V&);
15
+ template<simd-complex V> constexpr V conj(const V&);
16
+ template<simd-complex V> constexpr V proj(const V&);
17
+
18
+ template<simd-complex V> constexpr V exp(const V& v);
19
+ template<simd-complex V> constexpr V log(const V& v);
20
+ template<simd-complex V> constexpr V log10(const V& v);
21
+
22
+ template<simd-complex V> constexpr V sqrt(const V& v);
23
+ template<simd-complex V> constexpr V sin(const V& v);
24
+ template<simd-complex V> constexpr V asin(const V& v);
25
+ template<simd-complex V> constexpr V cos(const V& v);
26
+ template<simd-complex V> constexpr V acos(const V& v);
27
+ template<simd-complex V> constexpr V tan(const V& v);
28
+ template<simd-complex V> constexpr V atan(const V& v);
29
+ template<simd-complex V> constexpr V sinh(const V& v);
30
+ template<simd-complex V> constexpr V asinh(const V& v);
31
+ template<simd-complex V> constexpr V cosh(const V& v);
32
+ template<simd-complex V> constexpr V acosh(const V& v);
33
+ template<simd-complex V> constexpr V tanh(const V& v);
34
+ template<simd-complex V> constexpr V atanh(const V& v);
35
+ ```
36
+
37
+ *Returns:* A `basic_vec` object `ret` where the iᵗʰ element is
38
+ initialized to the result of *`cmplx-func`*`(v[`i`])` for all i in the
39
+ range \[`0`, `V::size()`), where *`cmplx-func`* is the corresponding
40
+ function from `<complex>`. If in an invocation of *`cmplx-func`* for
41
+ index i a domain, pole, or range error would occur, the value of
42
+ `ret[`i`]` is unspecified.
43
+
44
+ *Remarks:* It is unspecified whether `errno` [[errno]] is accessed.
45
+
46
+ ``` cpp
47
+ template<simd-floating-point V>
48
+ rebind_t<complex<typename V::value_type>, V> polar(const V& x, const V& y = {});
49
+
50
+ template<simd-complex V> constexpr V pow(const V& x, const V& y);
51
+ ```
52
+
53
+ *Returns:* A `basic_vec` object `ret` where the iᵗʰ element is
54
+ initialized to the result of *`cmplx-func`*`(x[`i`], y[`i`])` for all i
55
+ in the range \[`0`, `V::size()`), where *`cmplx-func`* is the
56
+ corresponding function from `<complex>`. If in an invocation of
57
+ *`cmplx-func`* for index i a domain, pole, or range error would occur,
58
+ the value of `ret[`i`]` is unspecified.
59
+
60
+ *Remarks:* It is unspecified whether `errno` [[errno]] is accessed.
61
+