![]() |
Vcsn
2.4
Be Rational
|
#include <r.hh>
Public Types | |
using | self_t = r |
using | value_t = double |
Public Member Functions | |
value_t | lgcd (const value_t l, const value_t r) const |
value_t | rgcd (const value_t l, const value_t r) const |
value_t | rdivide (const value_t l, const value_t r) const |
value_t | ldivide (const value_t l, const value_t r) const |
value_t | star (const value_t v) const |
value_t | conv (std::istream &i, bool=true) const |
std::ostream & | print_set (std::ostream &o, format fmt={}) const |
Static Public Member Functions | |
static symbol | sname () |
static r | make (std::istream &is) |
Build from the description in is. More... | |
static value_t | zero () |
static value_t | one () |
static value_t | min () |
static value_t | max () |
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 constexpr 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 | is_idempotent () |
static constexpr bool | has_lightening_weights () |
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 (q, const q::value_t v) |
static value_t | conv (z, const z::value_t v) |
static value_t | conv (b, const b::value_t v) |
static std::ostream & | print (const value_t v, std::ostream &o=std::cout, format={}) |
using vcsn::detail::r_impl::self_t = r |
using vcsn::detail::r_impl::value_t = double |
Definition at line 158 of file r.hh.
References vcsn::detail::v.
Definition at line 175 of file r.hh.
References vcsn::detail::v.
|
inlinestatic |
|
inlinestatic |
Definition at line 187 of file r.hh.
References vcsn::detail::v.
|
inlinestatic |
Definition at line 193 of file r.hh.
References vcsn::detail::v.
|
inline |
|
inlinestatic |
|
inlinestatic |
Definition at line 169 of file r.hh.
References vcsn::detail::hash_value().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Definition at line 86 of file r.hh.
References is_zero(), and vcsn::require().
Referenced by rgcd().
|
inlinestatic |
Build from the description in is.
Definition at line 35 of file r.hh.
References vcsn::eat(), and sname().
|
inlinestatic |
|
inline |
Definition at line 100 of file r.hh.
References is_zero(), and vcsn::require().
Referenced by ldivide().
|
inlinestatic |
|
inlinestatic |
Definition at line 113 of file r.hh.
References vcsn::raise_not_starrable(), and vcsn::detail::v.
|
inlinestatic |
Definition at line 155 of file r.hh.
References vcsn::ABSVAL.
Definition at line 164 of file r.hh.
References vcsn::detail::v.