kyosu v0.1.0
Complex Without Complexes
 
Loading...
Searching...
No Matches

◆ mulmi

kyosu::mulmi = {}
inlineconstexpr

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.

Defined in Header

#include <kyosu/functions.hpp>

Callable Signatures

namespace kyosu
{
template<kyosu::concepts::cayley_dickson T> constexpr auto mulmi(T z) noexcept;
template<eve::floating_ordered_value T> constexpr auto mulmi(T z) noexcept;
}
constexpr tags::callable_mulmi mulmi
Computes the value of the parameter multiplied by i on the left side. For real complex and quaternion...
Definition: mulmi.hpp:74
Main KYOSU namespace.
Definition: types.hpp:14

Parameters

  • z: Value to process.

Return value

  • Returns -i(as(z))*z; If z is floating point a complex is returned. In the other cases the returned value as the same type as the input.

Example