Computes the value of the parameter multiplied by i on the left side. For real complex and quaternion the computation is an optimization over the call to * operator.
#include <kyosu/kyosu.hpp>
#include <eve/wide.hpp>
#include <iostream>
int main()
{
using wide_ft = eve::wide <float, eve::fixed<4>>;
wide_ft r = { 3.0f, 2.0f, 1.0f, 0.5f};
wide_ft
i = { 2.0f , -1.0, -5.0, 0.0};
std::cout
<< "---- simd" << std::endl
<< "<- r = " << r << std::endl
<< "<- zc = " << zc << std::endl
<< "<- zq = " << zq << std::endl
return 0;
}
constexpr tags::callable_quaternion quaternion
Constructs a kyosu::quaternion.
Definition: to_quaternion.hpp:72
constexpr tags::callable_i i
Computes the complex number cinf i.e. complex(nan, inf) in the chosen type.
Definition: i.hpp:77
as_cayley_dickson_n_t< 2, T > complex_t
Type alias for complex numbers.
Definition: complex.hpp:27