Vowpal Wabbit
Classes | Functions | Variables
VW::details Namespace Reference

Classes

class  index_sequence
 
struct  make_index_sequence
 
struct  make_index_sequence< 0, Integers... >
 
class  scope_exit_caller
 
class  swap_guard_impl
 
class  swap_guard_impl_rvalue
 

Functions

constexpr float constexpr_int_pow10 (uint8_t exponent)
 
constexpr float constexpr_negative_int_pow10 (uint8_t exponent)
 
constexpr float constexpr_negative_int_pow10_with_offset (uint8_t exponent, uint8_t offset)
 
template<std::size_t ArrayLength, std::size_t... IntegerSequence>
constexpr std::array< float, ArrayLength > gen_negative_pow10s (index_sequence< IntegerSequence... >)
 
template<std::size_t ArrayLength, std::size_t... IntegerSequence>
constexpr std::array< float, ArrayLength > gen_positive_pow10s (index_sequence< IntegerSequence... >)
 

Variables

constexpr float POW10_BASE = 10.f
 
const constexpr uint8_t VALUES_BELOW_ZERO = FLT_MIN_10_EXP * -1
 
const constexpr uint8_t VALUES_ABOVE_AND_INCLUDING_ZERO = FLT_MAX_10_EXP + 1
 
const constexpr uint8_t VALUES_ABOVE_ZERO = FLT_MAX_10_EXP
 
static constexpr std::array< float, VALUES_ABOVE_AND_INCLUDING_ZEROpow_10_positive_lookup_table
 
static constexpr std::array< float, VALUES_BELOW_ZEROpow_10_negative_lookup_table
 

Function Documentation

constexpr float VW::details::constexpr_int_pow10 ( uint8_t  exponent)
constexpr float VW::details::constexpr_negative_int_pow10 ( uint8_t  exponent)
constexpr float VW::details::constexpr_negative_int_pow10_with_offset ( uint8_t  exponent,
uint8_t  offset 
)
template<std::size_t ArrayLength, std::size_t... IntegerSequence>
constexpr std::array<float, ArrayLength> VW::details::gen_negative_pow10s ( index_sequence< IntegerSequence... >  )
template<std::size_t ArrayLength, std::size_t... IntegerSequence>
constexpr std::array<float, ArrayLength> VW::details::gen_positive_pow10s ( index_sequence< IntegerSequence... >  )

Variable Documentation

constexpr float VW::details::POW10_BASE = 10.f
constexpr std::array<float, VALUES_BELOW_ZERO> VW::details::pow_10_negative_lookup_table
static
Initial value:
=
gen_negative_pow10s<VALUES_BELOW_ZERO>(make_index_sequence<VALUES_BELOW_ZERO>{})
constexpr std::array<float, VALUES_ABOVE_AND_INCLUDING_ZERO> VW::details::pow_10_positive_lookup_table
static
Initial value:
=
gen_positive_pow10s<VALUES_ABOVE_AND_INCLUDING_ZERO>(make_index_sequence<VALUES_ABOVE_AND_INCLUDING_ZERO>{})
const constexpr uint8_t VW::details::VALUES_ABOVE_AND_INCLUDING_ZERO = FLT_MAX_10_EXP + 1
const constexpr uint8_t VW::details::VALUES_ABOVE_ZERO = FLT_MAX_10_EXP
const constexpr uint8_t VW::details::VALUES_BELOW_ZERO = FLT_MIN_10_EXP * -1