Vaucanson  1.4.1
misc/algebra.hh
1 // algebra.hh: this file is part of the Vaucanson project.
2 //
3 // Vaucanson, a generic library for finite state machines.
4 //
5 // Copyright (C) 2011 The Vaucanson Group.
6 //
7 // This program is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU General Public License
9 // as published by the Free Software Foundation; either version 2
10 // of the License, or (at your option) any later version.
11 //
12 // The complete GNU General Public Licence Notice can be found as the
13 // `COPYING' file in the root directory.
14 //
15 // The Vaucanson Group consists of people listed in the `AUTHORS' file.
16 //
17 #ifndef INCLUDE_VAUCANSON_MISC_ALGEBRA_HH
18 # define INCLUDE_VAUCANSON_MISC_ALGEBRA_HH
19 
21 
22 
30 
31 namespace vcsn {
32  namespace misc {
34 
35 
36 
37 
38 
39 
40 
41  template<typename T>
42  inline
43  T gcd (T a, T b);
44 
46  template<typename T>
47  inline
48  T lcm (T a, T b);
49 
51  template<typename T>
52  inline
53  bool is_coprime (T a, T b);
54 
55  template<typename T>
56  inline
57  T abs (T a);
58 
61 } // !misc
63 } // !vcsn
64 # if !defined VCSN_USE_INTERFACE_ONLY || defined VCSN_USE_LIB
65 # include <vaucanson/misc/algebra.hxx>
66 # endif // VCSN_USE_INTERFACE_ONLY
67 
68 #endif // !INCLUDE_VAUCANSON_MISC_ALGEBRA_HH