00001
00002
00003 #ifndef DUNE_LCM_HH
00004 #define DUNE_LCM_HH
00005
00010 #include <dune/common/gcd.hh>
00011
00012 namespace Dune
00013 {
00014
00028 template<long m, long n>
00029 struct Lcm
00030 {
00031 static void conceptCheck()
00032 {
00033 static_assert(0<m, "m must be positive!");
00034 static_assert(0<n, "n must be positive!");
00035 }
00040 const static long value = (m/Gcd<m,n>::value)*n;
00041 };
00042 }
00043
00044 #endif