Callable object computing the pure imaginary ( \(i\)) value.
Required header: #include <eve/module/complex.hpp>
Member | Effect |
operator() | Computes the i constant |
tempate<eve::floating_value T> T operator()(
eve::as<T> const & t)
const noexcept;
Lightweight type-wrapper.
Definition: as.hpp:29
Parameters
t
: Type wrapper instance embedding the type of the constant.
Return value
the call eve::i(as<T>())
is semantically equivalent to eve::complex{0,T{1}
Example
#include <eve/module/complex.hpp>
#include <eve/wide.hpp>
#include <iostream>
int main()
{
std::cout
<< "---- simd" << '\n'
std::cout
<< "---- scalar" << '\n'
return 0;
}
constexpr callable_i_ i
Callable object computing the pure imaginary ( ) value.
Definition: i.hpp:52
Wrapper for SIMD registers.
Definition: wide.hpp:65