Newer
Older
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
#ifndef DUNE_LCM_HH
#define DUNE_LCM_HH
/** \file
* \brief Statically compute the least common multiple of two integers
*/
namespace Dune
{
/**
* @addtogroup Common
* @{
*/
/**
* @file
* This file provides template constructs for calculation the
* least common multiple.
*/
/**
* @brief Calculate the least common multiple of two numbers
*/
template<long m, long n>
struct Lcm
{
static void conceptCheck()
{
dune_static_assert(0<m, "m must be positive!");
dune_static_assert(0<n, "n must be positive!");