Definition at line 29 of file mathutil.h.
#include <mathutil.h>
|
| template<typename IntegralType> |
| static IntegralType | CeilOfRatio (IntegralType numerator, IntegralType denominator) |
| template<typename IntegralType> |
| static IntegralType | FloorOfRatio (IntegralType numerator, IntegralType denominator) |
| static unsigned int | GCD (unsigned int x, unsigned int y) |
| static unsigned int | LeastCommonMultiple (unsigned int a, unsigned int b) |
| template<typename T> |
| static T | Abs (const T x) |
| template<typename T> |
| static T | Square (const T x) |
| static int64_t | GCD64 (int64_t x, int64_t y) |
| template<typename T> |
| static T | IPow (T base, int exp) |
| template<class IntOut, class FloatIn> |
| static IntOut | Round (FloatIn x) |
| template<typename IntType> |
| static IntType | RoundUpTo (IntType input_value, IntType rounding_value) |
| template<class IntOut, class FloatIn> |
| static IntOut | SafeCast (FloatIn x) |
| template<class IntOut, class FloatIn> |
| static IntOut | SafeRound (FloatIn x) |
| static int64_t | FastInt64Round (double x) |
| static double | Stirling (double n) |
| static double | LogCombinations (int n, int k) |
| template<typename T> |
| static bool | AlmostEquals (const T x, const T y) |
◆ Abs()
template<typename T>
| T operations_research::MathUtil::Abs |
( |
const T | x | ) |
|
|
inlinestatic |
◆ AlmostEquals()
template<typename T>
| bool operations_research::MathUtil::AlmostEquals |
( |
const T | x, |
|
|
const T | y ) |
|
inlinestatic |
◆ CeilOfRatio()
template<typename IntegralType>
| IntegralType operations_research::MathUtil::CeilOfRatio |
( |
IntegralType | numerator, |
|
|
IntegralType | denominator ) |
|
inlinestatic |
◆ FastInt64Round()
| int64_t operations_research::MathUtil::FastInt64Round |
( |
double | x | ) |
|
|
inlinestatic |
◆ FloorOfRatio()
template<typename IntegralType>
| IntegralType operations_research::MathUtil::FloorOfRatio |
( |
IntegralType | numerator, |
|
|
IntegralType | denominator ) |
|
inlinestatic |
◆ GCD()
| unsigned int operations_research::MathUtil::GCD |
( |
unsigned int | x, |
|
|
unsigned int | y ) |
|
inlinestatic |
◆ GCD64()
| int64_t operations_research::MathUtil::GCD64 |
( |
int64_t | x, |
|
|
int64_t | y ) |
|
inlinestatic |
◆ IPow()
template<typename T>
| T operations_research::MathUtil::IPow |
( |
T | base, |
|
|
int | exp ) |
|
inlinestatic |
◆ LeastCommonMultiple()
| unsigned int operations_research::MathUtil::LeastCommonMultiple |
( |
unsigned int | a, |
|
|
unsigned int | b ) |
|
inlinestatic |
◆ LogCombinations()
| double operations_research::MathUtil::LogCombinations |
( |
int | n, |
|
|
int | k ) |
|
static |
◆ Round()
template<class IntOut, class FloatIn>
| IntOut operations_research::MathUtil::Round |
( |
FloatIn | x | ) |
|
|
inlinestatic |
◆ RoundUpTo()
template<typename IntType>
| IntType operations_research::MathUtil::RoundUpTo |
( |
IntType | input_value, |
|
|
IntType | rounding_value ) |
|
inlinestatic |
◆ SafeCast()
template<class IntOut, class FloatIn>
| IntOut operations_research::MathUtil::SafeCast |
( |
FloatIn | x | ) |
|
|
inlinestatic |
◆ SafeRound()
template<class IntOut, class FloatIn>
| IntOut operations_research::MathUtil::SafeRound |
( |
FloatIn | x | ) |
|
|
inlinestatic |
◆ Square()
template<typename T>
| T operations_research::MathUtil::Square |
( |
const T | x | ) |
|
|
inlinestatic |
◆ Stirling()
| double operations_research::MathUtil::Stirling |
( |
double | n | ) |
|
|
static |
The documentation for this class was generated from the following files: