Borderbasix

Classes | Functions
Arith.hpp File Reference
#include <stdlib.h>

Go to the source code of this file.

Classes

struct  CST< C >
 Definition of constants. More...
 

Functions

template<class C >
void convert (C &, char *)
 
template<class C >
bool IsNull (const C c)
 Generic equality test to zero. More...
 
template<class C >
bool IsDivide (const C, const C)
 
template<class C >
Gcd (const C, const C)
 
template<>
void convert (int &i, char *s)
 
template<>
bool IsNull (const int i)
 Specialization for int. More...
 
template<>
bool IsDivide (int a, int b)
 
template<>
int Gcd (int a, int b)
 
double factorial (int n)
 
template<>
void convert (double &d, char *s)
 
template<typename T >
void convert (T &dd, char *s)
 
template<>
bool IsNull (const double d)
 Specialization for double. More...
 
template<>
bool IsDivide (double a, double b)
 
template<>
double Gcd (double a, double b)
 

Function Documentation

template<class C >
void convert ( C &  ,
char *   
)
inline
template<>
void convert ( int &  i,
char *  s 
)
inline
template<>
void convert ( double &  d,
char *  s 
)
inline
template<typename T >
void convert ( T &  dd,
char *  s 
)
inline
double factorial ( int  n)
inline
template<class C >
C Gcd ( const C  ,
const C   
)
inline
template<>
int Gcd ( int  a,
int  b 
)
inline
template<>
double Gcd ( double  a,
double  b 
)
template<class C >
bool IsDivide ( const C  ,
const C   
)
inline
template<>
bool IsDivide ( int  a,
int  b 
)
inline
template<>
bool IsDivide ( double  a,
double  b 
)
template<class C >
bool IsNull ( const C  c)
inline

Generic equality test to zero.

template<>
bool IsNull ( const int  i)
inline

Specialization for int.

template<>
bool IsNull ( const double  d)
inline

Specialization for double.

Home  |  Download & InstallContributions