Vaucanson 1.4
algebra.hh
00001 // algebra.hh: this file is part of the Vaucanson project.
00002 //
00003 // Vaucanson, a generic library for finite state machines.
00004 //
00005 // Copyright (C) 2011 The Vaucanson Group.
00006 //
00007 // This program is free software; you can redistribute it and/or
00008 // modify it under the terms of the GNU General Public License
00009 // as published by the Free Software Foundation; either version 2
00010 // of the License, or (at your option) any later version.
00011 //
00012 // The complete GNU General Public Licence Notice can be found as the
00013 // `COPYING' file in the root directory.
00014 //
00015 // The Vaucanson Group consists of people listed in the `AUTHORS' file.
00016 //
00017 #ifndef INCLUDE_VAUCANSON_MISC_ALGEBRA_HH
00018 # define INCLUDE_VAUCANSON_MISC_ALGEBRA_HH
00019 
00021 
00022 
00030 
00031 namespace vcsn {
00032   namespace misc {
00034 
00035 
00036 
00037 
00038 
00039 
00040 
00041   template<typename T>
00042   inline
00043   T gcd (T a, T b);
00044 
00046   template<typename T>
00047   inline
00048   T lcm (T a, T b);
00049 
00051   template<typename T>
00052   inline
00053   bool is_coprime (T a, T b);
00054 
00055   template<typename T>
00056   inline
00057   T abs (T a);
00058 
00061 } // !misc
00063 } // !vcsn
00064 # if !defined VCSN_USE_INTERFACE_ONLY || defined VCSN_USE_LIB
00065 #  include <vaucanson/misc/algebra.hxx>
00066 # endif // VCSN_USE_INTERFACE_ONLY
00067 
00068 #endif // !INCLUDE_VAUCANSON_MISC_ALGEBRA_HH