Aerobus v1.2
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
aerobus::zpz< p >::val< x > Struct Template Reference

values in zpz More...

#include <aerobus.h>

Public Types

using enclosing_type = zpz< p >
 enclosing ring type
 
using is_zero_t = std::bool_constant< v==0 >
 true_type if zero
 

Static Public Member Functions

template<typename valueType >
static constexpr INLINED DEVICE valueType get ()
 get value as valueType
 
static std::string to_string ()
 string representation
 

Static Public Attributes

static constexpr int32_t v = x % p
 actual value
 
static constexpr bool is_zero_v = v == 0
 true if zero
 

Detailed Description

template<int32_t p>
template<int32_t x>
struct aerobus::zpz< p >::val< x >

values in zpz

Template Parameters
xan integer

Member Typedef Documentation

◆ enclosing_type

template<int32_t p>
template<int32_t x>
using aerobus::zpz< p >::val< x >::enclosing_type = zpz<p>

enclosing ring type

◆ is_zero_t

template<int32_t p>
template<int32_t x>
using aerobus::zpz< p >::val< x >::is_zero_t = std::bool_constant<v == 0>

true_type if zero

Member Function Documentation

◆ get()

template<int32_t p>
template<int32_t x>
template<typename valueType >
static constexpr INLINED DEVICE valueType aerobus::zpz< p >::val< x >::get ( )
inlinestaticconstexpr

get value as valueType

Template Parameters
valueTypean arithmetic type, such as float

◆ to_string()

template<int32_t p>
template<int32_t x>
static std::string aerobus::zpz< p >::val< x >::to_string ( )
inlinestatic

string representation

Returns
a string representation

Member Data Documentation

◆ is_zero_v

template<int32_t p>
template<int32_t x>
constexpr bool aerobus::zpz< p >::val< x >::is_zero_v = v == 0
staticconstexpr

true if zero

◆ v

template<int32_t p>
template<int32_t x>
constexpr int32_t aerobus::zpz< p >::val< x >::v = x % p
staticconstexpr

actual value


The documentation for this struct was generated from the following file: