Extracts the lj (seventh) part of a value.
Returns the seventh part of its argument.
For up to quaterion inputs, the call always returns 0.
#include <kyosu/kyosu.hpp>
#include <eve/wide.hpp>
#include <iostream>
int main()
{
std::cout << "Real: ";
float f = 72.9f;
std::cout << f <<
" -> " <<
ljpart(f) <<
"\n";
std::cout << "Complex: ";
std::cout << z <<
" -> " <<
ljpart(z) <<
"\n";
std::cout << "Quaternion: ";
std::cout << q <<
" -> " <<
ljpart(q) <<
" => ";
std::cout << "octonion: ";
std::cout << o <<
" -> " <<
ljpart(o) <<
" => ";
return 0;
}
as_cayley_dickson_n_t< 4, T > quaternion_t
Type alias for quaternion numbers.
Definition: quaternion.hpp:27
as_cayley_dickson_n_t< 2, T > complex_t
Type alias for complex numbers.
Definition: complex.hpp:27
as_cayley_dickson_n_t< 8, T > octonion_t
Type alias for octonion numbers.
Definition: octonion.hpp:26