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 > Conjugate

Functions

bool canStoreInInt (char)
bool canStoreInInt (unsigned char)
bool canStoreInInt (signed char)
bool canStoreInInt (short)
bool canStoreInInt (int)
bool canStoreInInt (unsigned int u)
bool canStoreInInt (long i)
bool canStoreInInt (unsigned long u)
bool canStoreInNonnegativeInt (char c)
bool canStoreInNonnegativeInt (unsigned char c)
bool canStoreInNonnegativeInt (signed char c)
bool canStoreInNonnegativeInt (short s)
bool canStoreInNonnegativeInt (unsigned short s)
bool canStoreInNonnegativeInt (int i)
bool canStoreInNonnegativeInt (long l)
bool canStoreInNonnegativeInt (unsigned int u)
bool canStoreInNonnegativeInt (unsigned long u)
bool 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 isNaN (const double &x)
bool isNaN (const long double &x)
template<class P>
bool isNaN (const std::complex< P > &x)
template<class P>
bool isNaN (const conjugate< P > &x)
bool isNaN (const negator< float > &x)
bool isNaN (const negator< double > &x)
bool isNaN (const negator< long double > &x)
template<class P>
bool isNaN (const negator< std::complex< P > > &x)
template<class P>
bool isNaN (const negator< conjugate< P > > &x)
unsigned int 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 sign (unsigned short u)
unsigned int sign (unsigned int u)
unsigned int sign (unsigned long u)
int sign (signed char i)
int sign (short i)
int sign (int i)
int sign (long i)
int sign (const float &x)
int sign (const double &x)
int sign (const long double &x)
int sign (const negator< float > &x)
int sign (const negator< double > &x)
int sign (const negator< long double > &x)
unsigned char square (unsigned char u)
 y=square(x) returns the square of the argument for any numeric type.
unsigned short square (unsigned short u)
unsigned int square (unsigned int u)
unsigned long square (unsigned long u)
char square (char c)
signed char square (signed char i)
short square (short i)
int square (int i)
long square (long i)
float square (const float &x)
double square (const double &x)
long double square (const long double &x)
float square (const negator< float > &x)
double square (const negator< double > &x)
long double square (const negator< long double > &x)
template<class P>
std::complex< P > square (const std::complex< P > &x)
template<class P>
std::complex< P > square (const conjugate< P > &x)
template<class P>
std::complex< P > square (const negator< std::complex< P > > &x)
template<class P>
std::complex< P > square (const negator< conjugate< P > > &x)
unsigned char cube (unsigned char u)
 y=cube(x) returns the cube of the argument for any numeric type, integral or floating point.
unsigned short cube (unsigned short u)
unsigned int cube (unsigned int u)
unsigned long cube (unsigned long u)
char cube (char c)
signed char cube (signed char i)
short cube (short i)
int cube (int i)
long cube (long i)
float cube (const float &x)
double cube (const double &x)
long double cube (const long double &x)
negator< float > cube (const negator< float > &x)
negator< double > cube (const negator< double > &x)
negator< long double > cube (const negator< long double > &x)
template<class P>
std::complex< P > cube (const std::complex< P > &x)
template<class P>
std::complex< P > cube (const negator< std::complex< P > > &x)


Generated on Fri Sep 26 07:44:21 2008 for SimTKcore by  doxygen 1.5.6