Vcsn  2.0
Be Rational
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
derivation.cc
Go to the documentation of this file.
1 #include <vcsn/dyn/automaton.hh>
5 #include <vcsn/dyn/algos.hh>
7 
8 namespace vcsn
9 {
10  namespace dyn
11  {
12  /*--------------------------.
13  | derivation(exp, string). |
14  `--------------------------*/
15  REGISTER_DEFINE(derivation);
16 
18  derivation(const ratexp& e, const label& l, bool breaking)
19  {
20  return detail::derivation_registry().call(e, l, breaking);
21  }
22 
23  /*--------------------.
24  | derived_term(exp). |
25  `--------------------*/
26  REGISTER_DEFINE(derived_term);
27 
28  automaton
29  derived_term(const ratexp& e, const std::string& algo)
30  {
31  return detail::derived_term_registry().call(e, algo);
32  }
33 
34  /*---------------------.
35  | to_expansion(exp). |
36  `---------------------*/
37  REGISTER_DEFINE(to_expansion);
38 
39  expansion
40  to_expansion(const ratexp& e)
41  {
42  return detail::to_expansion_registry().call(e);
43  }
44 
45  /*-------------.
46  | split(exp). |
47  `-------------*/
48  REGISTER_DEFINE(split);
49 
51  split(const ratexp& e)
52  {
53  return detail::split_registry().call(e);
54  }
55 
56  /*---------------------.
57  | split(polynomial). |
58  `---------------------*/
59  REGISTER_DEFINE(split_polynomial);
60 
62  split(const polynomial& p)
63  {
64  return detail::split_polynomial_registry().call(p);
65  }
66  }
67 }
PolynomialSet::value_t split_polynomial(const PolynomialSet &ps, const typename PolynomialSet::value_t &p)
Split a polynomial of ratexps.
Definition: split.hh:303
std::shared_ptr< detail::automaton_base > automaton
Definition: automaton.hh:71
polynomial split(const polynomial &p)
Break all the expressions in p.
Definition: derivation.cc:62
std::shared_ptr< detail::ratexp_base > ratexp
Definition: fwd.hh:64
expansion to_expansion(const ratexp &exp)
First order development of a exp.
Definition: derivation.cc:40
std::shared_ptr< const detail::expansion_base > expansion
Definition: expansion.hh:74
std::shared_ptr< const detail::label_base > label
Definition: fwd.hh:46
automaton derived_term(const ratexp &e, const std::string &algo="auto")
The derived-term automaton of e.
Definition: derivation.cc:29
polynomial derivation(const ratexp &exp, const label &l, bool breaking=false)
Derive exp with respect to s.
Definition: derivation.cc:18
std::shared_ptr< const detail::polynomial_base > polynomial
Definition: fwd.hh:55