dune-common  2.2.1
lcm.hh
Go to the documentation of this file.
1 #ifndef DUNE_LCM_HH
2 #define DUNE_LCM_HH
3 
9 #include<dune/common/gcd.hh>
10 
11 namespace Dune
12 {
13 
27  template<long m, long n>
28  struct Lcm
29  {
30  static void conceptCheck()
31  {
32  dune_static_assert(0<m, "m must be positive!");
33  dune_static_assert(0<n, "n must be positive!");
34  }
39  const static long value = (m/Gcd<m,n>::value)*n;
40  };
41 }
42 
43 #endif