Rosetta
Classes | Namespaces | Typedefs | Functions
Fmath.hh File Reference
#include <algorithm>
#include <cassert>
#include <cmath>
#include <cstddef>
#include <limits>

Classes

struct  ObjexxFCL::NearestSelector< R, T, bool >
 Nearest function selector class for R non-integer or T integer. More...
 
struct  ObjexxFCL::NearestSelector< R, T, true >
 Nearest function selector class for R integer and T non-integer. More...
 
struct  ObjexxFCL::ModSelector< T, bool >
 Mod function selector class for non-integer types. More...
 
struct  ObjexxFCL::ModSelector< T, true >
 Mod function selector class for integer types. More...
 
struct  ObjexxFCL::ModuloSelector< T, bool >
 Modulo function selector class for non-integer types. More...
 
struct  ObjexxFCL::ModuloSelector< T, true >
 Modulo function selector class for integer types. More...
 
struct  ObjexxFCL::RemainderSelector< T, bool >
 Remainder function selector class for non-integer types. More...
 
struct  ObjexxFCL::RemainderSelector< T, true >
 Remainder function selector class for integer types. More...
 
struct  ObjexxFCL::FastRemainderSelector< T, bool >
 Fast remainder function selector class for non-integer types. More...
 
struct  ObjexxFCL::FastRemainderSelector< T, true >
 Fast remainder function selector class for integer types. More...
 

Namespaces

 ObjexxFCL
 
 ObjexxFCL::bit
 

Typedefs

typedef ptrdiff_t ObjexxFCL::SSize
 

Functions

short int ObjexxFCL::min (short int const a, short int const b)
 min( short int, short int ) More...
 
int ObjexxFCL::min (int const a, int const b)
 min( int, int ) More...
 
long int ObjexxFCL::min (long int const a, long int const b)
 min( long int, long int ) More...
 
unsigned short int ObjexxFCL::min (unsigned short int const a, unsigned short int const b)
 min( unsigned short int, unsigned short int ) More...
 
unsigned int ObjexxFCL::min (unsigned int const a, unsigned int const b)
 min( unsigned int, unsigned int ) More...
 
unsigned long int ObjexxFCL::min (unsigned long int const a, unsigned long int const b)
 min( unsigned long int, unsigned long int ) More...
 
float ObjexxFCL::min (float const a, float const b)
 min( float, float ) More...
 
double ObjexxFCL::min (double const a, double const b)
 min( double, double ) More...
 
long double ObjexxFCL::min (long double const a, long double const b)
 min( long double, long double ) More...
 
template<typename T >
T const & ObjexxFCL::min (T const &a, T const &b, T const &c)
 min( a, b, c ) More...
 
template<typename T >
T const & ObjexxFCL::min (T const &a, T const &b, T const &c, T const &d)
 min( a, b, c, d ) More...
 
template<typename T >
T const & ObjexxFCL::min (T const &a, T const &b, T const &c, T const &d, T const &e)
 min( a, b, c, d, e ) More...
 
template<typename T >
T const & ObjexxFCL::min (T const &a, T const &b, T const &c, T const &d, T const &e, T const &f)
 min( a, b, c, d, e, f ) More...
 
short int ObjexxFCL::max (short int const a, short int const b)
 max( short int, short int ) More...
 
int ObjexxFCL::max (int const a, int const b)
 max( int, int ) More...
 
long int ObjexxFCL::max (long int const a, long int const b)
 max( long int, long int ) More...
 
unsigned short int ObjexxFCL::max (unsigned short int const a, unsigned short int const b)
 max( unsigned short int, unsigned short int ) More...
 
unsigned int ObjexxFCL::max (unsigned int const a, unsigned int const b)
 max( unsigned int, unsigned int ) More...
 
unsigned long int ObjexxFCL::max (unsigned long int const a, unsigned long int const b)
 max( unsigned long int, unsigned long int ) More...
 
float ObjexxFCL::max (float const a, float const b)
 max( float, float ) More...
 
double ObjexxFCL::max (double const a, double const b)
 max( double, double ) More...
 
long double ObjexxFCL::max (long double const a, long double const b)
 max( long double, long double ) More...
 
template<typename T >
T const & ObjexxFCL::max (T const &a, T const &b, T const &c)
 max( a, b, c ) More...
 
template<typename T >
T const & ObjexxFCL::max (T const &a, T const &b, T const &c, T const &d)
 max( a, b, c, d ) More...
 
template<typename T >
T const & ObjexxFCL::max (T const &a, T const &b, T const &c, T const &d, T const &e)
 max( a, b, c, d, e ) More...
 
template<typename T >
T const & ObjexxFCL::max (T const &a, T const &b, T const &c, T const &d, T const &e, T const &f)
 max( a, b, c, d, e, f ) More...
 
template<typename T >
T ObjexxFCL::abs (T const &x)
 std::abs( x ) == | x | More...
 
template<typename T >
T ObjexxFCL::square (T const &x)
 square( x ) == x^2 More...
 
template<typename T >
T ObjexxFCL::cube (T const &x)
 cube( x ) == x^3 More...
 
template<typename T >
int ObjexxFCL::sign (T const &x)
 sign( x ) More...
 
template<typename X , typename Y >
X ObjexxFCL::sign (X const &x, Y const &y)
 Sign Transfer from Second Argument to First Argument. More...
 
template<typename R , typename T >
ObjexxFCL::nearest (T const &x)
 nearest< R >( x ): Nearest R More...
 
template<typename T >
std::size_t ObjexxFCL::nearest_size (T const &x)
 nearest_size( x ): Nearest std::size_t More...
 
template<typename T >
SSize ObjexxFCL::nearest_ssize (T const &x)
 nearest_ssize( x ): Nearest SSize More...
 
template<typename T >
int ObjexxFCL::nearest_int (T const &x)
 nearest_int( x ): Nearest int More...
 
template<typename T >
int ObjexxFCL::nint (T const &x)
 nint( x ): Nearest int More...
 
template<typename T >
short int ObjexxFCL::nsint (T const &x)
 nsint( x ): Nearest short int More...
 
template<typename T >
long int ObjexxFCL::nlint (T const &x)
 nlint( x ): Nearest long int More...
 
template<typename T >
T ObjexxFCL::mod (T const &x, T const &y)
 x(mod y) computational modulo returning magnitude < | y | and sign of x More...
 
float ObjexxFCL::mod (float const &i, float const &n)
 i(mod n) : float Arguments More...
 
double ObjexxFCL::mod (double const &i, double const &n)
 i(mod n) : double Arguments More...
 
long double ObjexxFCL::mod (long double const &i, long double const &n)
 i(mod n) : long double Arguments More...
 
template<typename T >
T ObjexxFCL::modulo (T const &x, T const &y)
 x(mod y) mathematical modulo returning magnitude < | y | and sign of y More...
 
template<typename T >
T ObjexxFCL::remainder (T const &x, T const &y)
 Remainder of x with respect to division by y that is of smallest magnitude. More...
 
template<typename T >
T ObjexxFCL::fast_remainder (T const &x, T const &y)
 Remainder of x with respect to division by y that is of smallest magnitude. More...
 
template<typename T , typename S >
T ObjexxFCL::remainder_conversion (T const &t, S &s)
 Remainder and result of conversion to a different type. More...
 
template<typename T >
T ObjexxFCL::gcd (T const &m, T const &n)
 Greatest Common Divisor. More...
 
template<typename T >
bool ObjexxFCL::eq_tol (T const &x, T const &y, T const &r_tol, T const &a_tol)
 Equal within specified relative and absolute tolerances? More...
 
template<typename T >
bool ObjexxFCL::lt_tol (T const &x, T const &y, T const &r_tol, T const &a_tol)
 Less than within specified relative and absolute tolerances? More...
 
template<typename T >
bool ObjexxFCL::le_tol (T const &x, T const &y, T const &r_tol, T const &a_tol)
 Less than or equal within specified relative and absolute tolerances? More...
 
template<typename T >
bool ObjexxFCL::ge_tol (T const &x, T const &y, T const &r_tol, T const &a_tol)
 Greater than or equal within specified relative and absolute tolerances? More...
 
template<typename T >
bool ObjexxFCL::gt_tol (T const &x, T const &y, T const &r_tol, T const &a_tol)
 Greater than within specified relative and absolute tolerances? More...
 
template<typename T >
T ObjexxFCL::bit::bit_not (T const &x)
 Bitwise Not. More...
 
template<typename T >
T ObjexxFCL::bit::bit_and (T const &x, T const &y)
 Bitwise And. More...
 
template<typename T >
T ObjexxFCL::bit::bit_or (T const &x, T const &y)
 Bitwise Inclusive Or. More...
 
template<typename T >
T ObjexxFCL::bit::bit_xor (T const &x, T const &y)
 Bitwise Exclusive Or. More...
 
template<typename T >
T ObjexxFCL::bit::bit_set (T const &x, T const &pos)
 Bit Value Set to 1. More...
 
template<typename T >
T ObjexxFCL::bit::bit_clr (T const &x, T const &pos)
 Bit Value Set to 0. More...
 
template<typename T >
bool ObjexxFCL::bit::bit_test (T const &x, T const &pos)
 Bit Value Test. More...