Scalar.h File Reference


Detailed Description

This is a user-includable header which includes everything needed to make use of SimMatrix Scalar code.

More commonly, this will be included from within Matrix code.

#include "SimTKcommon/internal/common.h"
#include "SimTKcommon/Constants.h"
#include "SimTKcommon/internal/Exception.h"
#include "SimTKcommon/internal/ExceptionMacros.h"
#include "SimTKcommon/internal/String.h"
#include "SimTKcommon/internal/conjugate.h"
#include "SimTKcommon/internal/CompositeNumericalTypes.h"
#include "SimTKcommon/internal/NTraits.h"
#include "SimTKcommon/internal/negator.h"
#include <complex>

Go to the source code of this file.

Namespaces

namespace  SimTK

Typedefs

typedef conjugate< Real > SimTK::Conjugate

Functions

bool SimTK::canStoreInInt (char)
bool SimTK::canStoreInInt (unsigned char)
bool SimTK::canStoreInInt (signed char)
bool SimTK::canStoreInInt (short)
bool SimTK::canStoreInInt (int)
bool SimTK::canStoreInInt (unsigned int u)
bool SimTK::canStoreInInt (long i)
bool SimTK::canStoreInInt (unsigned long u)
bool SimTK::canStoreInNonnegativeInt (char c)
bool SimTK::canStoreInNonnegativeInt (unsigned char c)
bool SimTK::canStoreInNonnegativeInt (signed char c)
bool SimTK::canStoreInNonnegativeInt (short s)
bool SimTK::canStoreInNonnegativeInt (unsigned short s)
bool SimTK::canStoreInNonnegativeInt (int i)
bool SimTK::canStoreInNonnegativeInt (long l)
bool SimTK::canStoreInNonnegativeInt (unsigned int u)
bool SimTK::canStoreInNonnegativeInt (unsigned long u)
bool SimTK::isNaN (const float &x)
 isNaN(x) provides a reliable way to determine if x is one of the "not a number" floating point forms.
bool SimTK::isNaN (const double &x)
bool SimTK::isNaN (const long double &x)
template<class P>
bool SimTK::isNaN (const std::complex< P > &x)
template<class P>
bool SimTK::isNaN (const conjugate< P > &x)
bool SimTK::isNaN (const negator< float > &x)
bool SimTK::isNaN (const negator< double > &x)
bool SimTK::isNaN (const negator< long double > &x)
template<class P>
bool SimTK::isNaN (const negator< std::complex< P > > &x)
template<class P>
bool SimTK::isNaN (const negator< conjugate< P > > &x)
unsigned int SimTK::sign (unsigned char u)
 s=sign(n) returns int -1,0,1 according to n<0, n==0, n>0 for any integer or real numeric type, unsigned 0 or 1 for any unsigned argument.
unsigned int SimTK::sign (unsigned short u)
unsigned int SimTK::sign (unsigned int u)
unsigned int SimTK::sign (unsigned long u)
int SimTK::sign (signed char i)
int SimTK::sign (short i)
int SimTK::sign (int i)
int SimTK::sign (long i)
int SimTK::sign (const float &x)
int SimTK::sign (const double &x)
int SimTK::sign (const long double &x)
int SimTK::sign (const negator< float > &x)
int SimTK::sign (const negator< double > &x)
int SimTK::sign (const negator< long double > &x)
unsigned char SimTK::square (unsigned char u)
 y=square(x) returns the square of the argument for any numeric type.
unsigned short SimTK::square (unsigned short u)
unsigned int SimTK::square (unsigned int u)
unsigned long SimTK::square (unsigned long u)
char SimTK::square (char c)
signed char SimTK::square (signed char i)
short SimTK::square (short i)
int SimTK::square (int i)
long SimTK::square (long i)
float SimTK::square (const float &x)
double SimTK::square (const double &x)
long double SimTK::square (const long double &x)
float SimTK::square (const negator< float > &x)
double SimTK::square (const negator< double > &x)
long double SimTK::square (const negator< long double > &x)
template<class P>
std::complex< P > SimTK::square (const std::complex< P > &x)
template<class P>
std::complex< P > SimTK::square (const conjugate< P > &x)
template<class P>
std::complex< P > SimTK::square (const negator< std::complex< P > > &x)
template<class P>
std::complex< P > SimTK::square (const negator< conjugate< P > > &x)
unsigned char SimTK::cube (unsigned char u)
 y=cube(x) returns the cube of the argument for any numeric type, integral or floating point.
unsigned short SimTK::cube (unsigned short u)
unsigned int SimTK::cube (unsigned int u)
unsigned long SimTK::cube (unsigned long u)
char SimTK::cube (char c)
signed char SimTK::cube (signed char i)
short SimTK::cube (short i)
int SimTK::cube (int i)
long SimTK::cube (long i)
float SimTK::cube (const float &x)
double SimTK::cube (const double &x)
long double SimTK::cube (const long double &x)
negator< float > SimTK::cube (const negator< float > &x)
negator< double > SimTK::cube (const negator< double > &x)
negator< long double > SimTK::cube (const negator< long double > &x)
template<class P>
std::complex< P > SimTK::cube (const std::complex< P > &x)
template<class P>
std::complex< P > SimTK::cube (const negator< std::complex< P > > &x)


Generated on Thu Feb 28 01:34:34 2008 for SimTKcommon by  doxygen 1.4.7