Simple Application Framework  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Namespaces | Functions
Saf/Math/Algebra/Number.h File Reference

Common functions from number theory.
More...

#include "../../Type.h"
#include "../Basic.h"
#include "../../Type/IteratorTraits.h"

Go to the source code of this file.

Namespaces

namespace  Saf
 Global library namespace.
namespace  Saf::Math
 Mathematical functions and structures.
namespace  Saf::Math::Algebra
 Implementations of various objects from algebra.

Functions

template<class T >
Saf::Math::Algebra::Gcd (T a, T b)
 Greates common divisor.
template<class T >
Saf::Math::Algebra::Gcd (T a, T b, T c)
 Greates common divisor.
template<class FwdIter >
Type::IteratorTraits< FwdIter >
::ValType 
Saf::Math::Algebra::Gcd (FwdIter begin, FwdIter end)
 Greates common divisor of a sequence of values.
template<class T >
Saf::Math::Algebra::Lcm (T a, T b)
 Least common multiple.
template<class T >
Saf::Math::Algebra::Lcm (T a, T b, T c)
 Least common multiple.
template<class FwdIter >
Type::IteratorTraits< FwdIter >
::ValType 
Saf::Math::Algebra::Lcm (FwdIter begin, FwdIter end)
 Least common multiple of a sequence of values.

Detailed Description

Common functions from number theory.
Author:
Ondrej Danek ondre.nosp@m.j.da.nosp@m.nek@g.nosp@m.mail.nosp@m..com
Date:
2010