The semiring of rational numbers.
More...
#include <q.hh>
|
static value_t | abs (const value_t v) |
|
static unsigned int | abs (int a) |
|
static value_t | add (const value_t l, const value_t r) |
|
static value_t | conv (b, b::value_t v) |
|
static value_t | conv (n, n::value_t v) |
|
static value_t | conv (self_type, value_t v) |
|
static value_t | conv (std::istream &i) |
|
static value_t | conv (z, z::value_t v) |
|
static bool | equals (const value_t l, const value_t r) |
|
static size_t | hash (value_t v) |
|
static constexpr bool | is_commutative_semiring () |
|
static bool | is_one (const value_t v) |
|
static bool | is_special (const value_t) |
|
static bool | is_zero (const value_t v) |
|
static value_t | ldiv (const value_t l, const value_t r) |
|
static bool | less_than (value_t lhs, value_t rhs) |
| Whether lhs < rhs. More...
|
|
static q | make (std::istream &is) |
| Build from the description in is. More...
|
|
static value_t | mul (const value_t l, const value_t r) |
|
static value_t | one () |
|
static value_t | parse (const std::string &s, size_t &p) |
|
static std::ostream & | print (const value_t v, std::ostream &o, const std::string &format="text") |
|
static value_t | rdiv (const value_t l, const value_t r) |
|
static constexpr bool | show_one () |
|
static std::string | sname () |
|
static constexpr star_status_t | star_status () |
|
static value_t | sub (const value_t l, const value_t r) |
|
static value_t | transpose (const value_t v) |
|
static value_t | zero () |
|
The semiring of rational numbers.
The values are q_fraction_t
◆ self_type
◆ value_t
◆ abs() [1/2]
◆ abs() [2/2]
static unsigned int awali::sttc::q::abs |
( |
int |
a | ) |
|
|
static |
◆ add()
◆ conv() [1/5]
◆ conv() [2/5]
◆ conv() [3/5]
◆ conv() [4/5]
static value_t awali::sttc::q::conv |
( |
std::istream & |
i | ) |
|
|
static |
◆ conv() [5/5]
◆ equals()
static bool awali::sttc::q::equals |
( |
const value_t |
l, |
|
|
const value_t |
r |
|
) |
| |
|
static |
◆ hash()
static size_t awali::sttc::q::hash |
( |
value_t |
v | ) |
|
|
static |
◆ is_commutative_semiring()
static constexpr bool awali::sttc::q::is_commutative_semiring |
( |
| ) |
|
|
staticconstexpr |
◆ is_one()
static bool awali::sttc::q::is_one |
( |
const value_t |
v | ) |
|
|
static |
◆ is_special()
static bool awali::sttc::q::is_special |
( |
const |
value_t | ) |
|
|
static |
◆ is_zero()
static bool awali::sttc::q::is_zero |
( |
const value_t |
v | ) |
|
|
static |
◆ ldiv()
◆ less_than()
◆ make()
static q awali::sttc::q::make |
( |
std::istream & |
is | ) |
|
|
static |
Build from the description in is.
◆ mul()
◆ one()
static value_t awali::sttc::q::one |
( |
| ) |
|
|
static |
◆ parse()
static value_t awali::sttc::q::parse |
( |
const std::string & |
s, |
|
|
size_t & |
p |
|
) |
| |
|
static |
◆ print()
static std::ostream& awali::sttc::q::print |
( |
const value_t |
v, |
|
|
std::ostream & |
o, |
|
|
const std::string & |
format = "text" |
|
) |
| |
|
static |
◆ print_set()
std::ostream& awali::sttc::q::print_set |
( |
std::ostream & |
o, |
|
|
const std::string & |
format = "text" |
|
) |
| const |
◆ rdiv()
◆ show_one()
static constexpr bool awali::sttc::q::show_one |
( |
| ) |
|
|
staticconstexpr |
◆ sname()
static std::string awali::sttc::q::sname |
( |
| ) |
|
|
static |
◆ star()
◆ star_status()
◆ sub()
◆ to_json()
template<unsigned version = version::fsm_json>
◆ transpose()
◆ value_from_json()
template<unsigned version = version::fsm_json>
◆ value_to_json()
template<unsigned version = version::fsm_json>
◆ vname()
std::string awali::sttc::q::vname |
( |
bool |
= true | ) |
const |
◆ zero()
static value_t awali::sttc::q::zero |
( |
| ) |
|
|
static |
The documentation for this class was generated from the following file:
- /home/marsault/git-client/telecom/awali.git/awali/sttc/weightset/q.hh