- Home
- About DUNE
- Download
- Documentation
- Community
- Development
00001 #ifndef DUNE_LCM_HH 00002 #define DUNE_LCM_HH 00003 00008 #include<dune/common/static_assert.hh> 00009 #include<dune/common/gcd.hh> 00010 00011 namespace Dune 00012 { 00013 00027 template<long m, long n> 00028 struct Lcm 00029 { 00030 static void conceptCheck() 00031 { 00032 dune_static_assert(0<m, "m must be positive!"); 00033 dune_static_assert(0<n, "n must be positive!"); 00034 } 00039 const static long value = (m/Gcd<m,n>::value)*n; 00040 }; 00041 } 00042 00043 #endif
Generated on Fri Apr 29 2011 with Doxygen (ver 1.7.1) [doxygen-log,error-log].