![]() |
Vcsn
2.8
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 int | compare (const value_t l, const value_t r) |
| Three-way comparison between l and r. More... | |
| static bool | equal (const value_t l, const value_t r) |
| Whether l == r. More... | |
| 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 165 of file r.hh.
References vcsn::detail::v.
Definition at line 182 of file r.hh.
References vcsn::detail::v.
|
inlinestatic |
|
inlinestatic |
Definition at line 194 of file r.hh.
References vcsn::detail::v.
|
inlinestatic |
Definition at line 200 of file r.hh.
References vcsn::detail::v.
|
inline |
|
inlinestatic |
|
inlinestatic |
Definition at line 176 of file r.hh.
References vcsn::detail::hash_value().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Definition at line 85 of file r.hh.
References is_zero(), and vcsn::require().
Referenced by rgcd().
|
inlinestatic |
Build from the description in is.
Definition at line 34 of file r.hh.
References vcsn::eat(), and sname().
|
inlinestatic |
|
inlinestatic |
Definition at line 216 of file r.hh.
References vcsn::detail::v.
|
inline |
Definition at line 223 of file r.hh.
References vcsn::format::latex, vcsn::format::raw, vcsn::format::sname, sname(), vcsn::format::text, and vcsn::format::utf8.
Definition at line 99 of file r.hh.
References is_zero(), and vcsn::require().
Referenced by ldivide().
|
inlinestatic |
|
inlinestatic |
Definition at line 112 of file r.hh.
References vcsn::raise_not_starrable(), and vcsn::detail::v.
|
inlinestatic |
Definition at line 162 of file r.hh.
References vcsn::ABSVAL.
Definition at line 171 of file r.hh.
References vcsn::detail::v.