Read or replace the real and imaginary components of vector elements.
More...
Read or replace the real and imaginary components of vector elements.
- See also
- https://eel.is/c++draft/simd.complex.access
◆ imag() [1/2]
template<typename _Tp, typename _Abi>
Return the imaginary components of the complex elements.
- Returns
- A real-valued vector with the same number of elements.
◆ imag() [2/2]
template<typename _Tp, typename _Abi>
Replace the imaginary component of each complex element.
- Parameters
-
| new_imags | The vector supplying the new imaginary components. |
◆ real() [1/2]
template<typename _Tp, typename _Abi>
Return the real components of the complex elements.
- Returns
- A real-valued vector with the same number of elements.
◆ real() [2/2]
template<typename _Tp, typename _Abi>
Replace the real component of each complex element.
- Parameters
-
| new_reals | The vector supplying the new real components. |