E.V.E
v2023.02.15

◆ i

eve::i = {}
inlineconstexpr

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'
<< "-> i(as<wide_ft()) = " << eve::i(eve::as<wide_ft>()) << '\n';
std::cout
<< "---- scalar" << '\n'
<< "-> i(as(1.0)) = " << eve::i(eve::as(1.0)) << '\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