![]() |
Vcsn
2.1
Be Rational
|
#include <q.hh>
Classes | |
struct | value_t |
Public Types | |
using | self_t = q |
Public Member Functions | |
value_t | star (const value_t v) const |
std::ostream & | print_set (std::ostream &o, format fmt={}) const |
Static Public Member Functions | |
static symbol | sname () |
static q | make (std::istream &is) |
Build from the description in is. More... | |
static unsigned int | abs (int a) |
static value_t | zero () |
static value_t | one () |
static value_t | add (const value_t l, const value_t r) |
static value_t | sub (const value_t l, const value_t r) |
static value_t | mul (const value_t l, const value_t r) |
static value_t | lgcd (const value_t l, const value_t r) |
GCD: arbitrarily the first argument. More... | |
static value_t | rgcd (const value_t l, const value_t r) |
static value_t | rdiv (const value_t l, const value_t r) |
static value_t | ldiv (const value_t l, const value_t r) |
static bool | is_special (const value_t) |
static bool | is_zero (const value_t v) |
static bool | is_one (const value_t v) |
static bool | equal (const value_t l, const value_t r) |
static bool | less (const value_t lhs, const value_t rhs) |
Whether lhs < rhs. More... | |
static constexpr bool | is_commutative () |
static constexpr bool | show_one () |
static constexpr star_status_t | star_status () |
static value_t | abs (const value_t v) |
static value_t | transpose (const value_t v) |
static size_t | hash (const value_t v) |
static value_t | conv (self_t, const value_t v) |
static value_t | conv (z, const z::value_t v) |
static value_t | conv (b, const b::value_t v) |
static value_t | conv (std::istream &i, bool=true) |
static std::ostream & | print (const value_t v, std::ostream &o, format fmt={}) |
using vcsn::detail::q_impl::self_t = q |
|
inlinestatic |
Definition at line 168 of file q.hh.
References vcsn::detail::q_impl::value_t::den, and vcsn::detail::q_impl::value_t::num.
Definition at line 76 of file q.hh.
References abs(), vcsn::detail::q_impl::value_t::den, vcsn::detail::lcm(), and vcsn::detail::q_impl::value_t::num.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Definition at line 206 of file q.hh.
References vcsn::eat(), vcsn::detail::q_impl::value_t::reduce(), vcsn::require(), and sname().
Definition at line 151 of file q.hh.
References vcsn::detail::q_impl::value_t::den, and vcsn::detail::q_impl::value_t::num.
|
inlinestatic |
Definition at line 179 of file q.hh.
References vcsn::detail::q_impl::value_t::den, vcsn::hash_combine(), vcsn::hash_value(), and vcsn::detail::q_impl::value_t::num.
|
inlinestatic |
|
inlinestatic |
Definition at line 145 of file q.hh.
References vcsn::detail::q_impl::value_t::den, and vcsn::detail::q_impl::value_t::num.
|
inlinestatic |
|
inlinestatic |
Definition at line 140 of file q.hh.
References vcsn::detail::q_impl::value_t::num.
Whether lhs < rhs.
Definition at line 157 of file q.hh.
References vcsn::detail::q_impl::value_t::den, and vcsn::detail::q_impl::value_t::num.
|
inlinestatic |
Build from the description in is.
Definition at line 35 of file q.hh.
References vcsn::eat(), and sname().
Definition at line 90 of file q.hh.
References vcsn::detail::q_impl::value_t::den, and vcsn::detail::q_impl::value_t::num.
|
inline |
Definition at line 111 of file q.hh.
References vcsn::detail::q_impl::value_t::den, is_zero(), vcsn::detail::q_impl::value_t::num, and vcsn::require().
Referenced by ldiv().
|
inlinestatic |
|
inlinestatic |
Definition at line 126 of file q.hh.
References abs(), vcsn::detail::q_impl::value_t::den, vcsn::detail::q_impl::value_t::num, sname(), and vcsn::to_string().
|
inlinestatic |
Definition at line 165 of file q.hh.
References vcsn::ABSVAL.
Definition at line 83 of file q.hh.
References abs(), vcsn::detail::q_impl::value_t::den, vcsn::detail::lcm(), and vcsn::detail::q_impl::value_t::num.