Classes | Functions

OpenTissue::math::detail Namespace Reference

Classes

class  KMeans

Functions

template<typename T >
zero ()
template<>
float zero< float > ()
template<>
double zero< double > ()
template<>
int zero< int > ()
template<>
long unsigned int zero< long unsigned int > ()
template<>
unsigned int zero< unsigned int > ()
template<typename T >
one ()
template<>
float one< float > ()
template<>
double one< double > ()
template<>
int one< int > ()
template<>
unsigned int one< unsigned int > ()
template<typename T >
two ()
template<>
float two< float > ()
template<>
double two< double > ()
template<>
int two< int > ()
template<>
unsigned int two< unsigned int > ()
template<typename T >
three ()
template<>
float three< float > ()
template<>
double three< double > ()
template<>
int three< int > ()
template<>
unsigned int three< unsigned int > ()
template<typename T >
four ()
template<>
float four< float > ()
template<>
double four< double > ()
template<>
int four< int > ()
template<>
unsigned int four< unsigned int > ()
template<typename T >
eight ()
template<>
float eight< float > ()
template<>
double eight< double > ()
template<>
int eight< int > ()
template<>
unsigned int eight< unsigned int > ()
template<typename T >
half ()
template<>
float half< float > ()
template<>
double half< double > ()
template<typename T >
pi ()
template<typename T >
pi_half ()
template<typename T >
pi_quarter ()
template<typename T >
highest ()
template<typename T >
lowest ()
template<typename T >
infinity ()
template<typename T >
degree ()
template<typename T >
radian ()
bool withness (int a, int n)
template<typename T >
Vector3< T > const & axis_x ()
template<typename T >
Vector3< T > const & axis_y ()
template<typename T >
Vector3< T > const & axis_z ()

Function Documentation

template<typename T >
Vector3<T> const& OpenTissue::math::detail::axis_x (  )  [inline]
template<typename T >
Vector3<T> const& OpenTissue::math::detail::axis_y (  )  [inline]
template<typename T >
Vector3<T> const& OpenTissue::math::detail::axis_z (  )  [inline]
template<typename T >
T OpenTissue::math::detail::degree (  )  [inline]
template<typename T >
T OpenTissue::math::detail::eight (  )  [inline]
template<>
double OpenTissue::math::detail::eight< double > (  )  [inline]
template<>
float OpenTissue::math::detail::eight< float > (  )  [inline]
template<>
int OpenTissue::math::detail::eight< int > (  )  [inline]
template<>
unsigned int OpenTissue::math::detail::eight< unsigned int > (  )  [inline]
template<typename T >
T OpenTissue::math::detail::four (  )  [inline]
template<>
double OpenTissue::math::detail::four< double > (  )  [inline]
template<>
float OpenTissue::math::detail::four< float > (  )  [inline]
template<>
int OpenTissue::math::detail::four< int > (  )  [inline]
template<>
unsigned int OpenTissue::math::detail::four< unsigned int > (  )  [inline]
template<typename T >
T OpenTissue::math::detail::half (  )  [inline]
template<>
double OpenTissue::math::detail::half< double > (  )  [inline]
template<>
float OpenTissue::math::detail::half< float > (  )  [inline]
template<typename T >
T OpenTissue::math::detail::highest (  )  [inline]
template<typename T >
T OpenTissue::math::detail::infinity (  )  [inline]
template<typename T >
T OpenTissue::math::detail::lowest (  )  [inline]
template<typename T >
T OpenTissue::math::detail::one (  )  [inline]
template<>
double OpenTissue::math::detail::one< double > (  )  [inline]
template<>
float OpenTissue::math::detail::one< float > (  )  [inline]
template<>
int OpenTissue::math::detail::one< int > (  )  [inline]
template<>
unsigned int OpenTissue::math::detail::one< unsigned int > (  )  [inline]
template<typename T >
T OpenTissue::math::detail::pi (  )  [inline]
template<typename T >
T OpenTissue::math::detail::pi_half (  )  [inline]
template<typename T >
T OpenTissue::math::detail::pi_quarter (  )  [inline]
template<typename T >
T OpenTissue::math::detail::radian (  )  [inline]
template<typename T >
T OpenTissue::math::detail::three (  )  [inline]
template<>
double OpenTissue::math::detail::three< double > (  )  [inline]
template<>
float OpenTissue::math::detail::three< float > (  )  [inline]
template<>
int OpenTissue::math::detail::three< int > (  )  [inline]
template<>
unsigned int OpenTissue::math::detail::three< unsigned int > (  )  [inline]
template<typename T >
T OpenTissue::math::detail::two (  )  [inline]
template<>
double OpenTissue::math::detail::two< double > (  )  [inline]
template<>
float OpenTissue::math::detail::two< float > (  )  [inline]
template<>
int OpenTissue::math::detail::two< int > (  )  [inline]
template<>
unsigned int OpenTissue::math::detail::two< unsigned int > (  )  [inline]
bool OpenTissue::math::detail::withness ( int  a,
int  n 
) [inline]

Used exclusively by the Miller-Rabin algorithm. It is essential the same as modular exponentiation a raised to n-1 modulo n.

This "version" is specialized to test for notrivial square roots of 1.

template<typename T >
T OpenTissue::math::detail::zero (  )  [inline]
template<>
double OpenTissue::math::detail::zero< double > (  )  [inline]
template<>
float OpenTissue::math::detail::zero< float > (  )  [inline]
template<>
int OpenTissue::math::detail::zero< int > (  )  [inline]
template<>
long unsigned int OpenTissue::math::detail::zero< long unsigned int > (  )  [inline]
template<>
unsigned int OpenTissue::math::detail::zero< unsigned int > (  )  [inline]