casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
casa::CExp< T > Class Template Reference

Call this inline as f(arg/PI2) More...

#include <CExp.h>

List of all members.

Public Member Functions

 CExp ()
 CExp (int n)
void build (int n)
double f (register T arg)
int hashFunction (T arg)
int myhash2 (register double arg)
 {return (int)(myhash(arg/PI2)/Step);}
std::complex< T > operator() (T &arg)
imag (T arg)
real (T arg)
void reim (T &arg, T &re, T &im)

Private Attributes

Vector< T > RTable
Vector< T > ITable
Step
int Size

Detailed Description

template<class T>
class casa::CExp< T >

Call this inline as f(arg/PI2)

 

Definition at line 55 of file CExp.h.


Constructor & Destructor Documentation

template<class T >
casa::CExp< T >::CExp ( ) [inline]

Definition at line 58 of file CExp.h.

References casa::CExp< T >::Size.

template<class T >
casa::CExp< T >::CExp ( int  n) [inline]

Definition at line 59 of file CExp.h.

References casa::CExp< T >::build(), and casa::CExp< T >::Size.


Member Function Documentation

template<class T >
void casa::CExp< T >::build ( int  n) [inline]
template<class T >
double casa::CExp< T >::f ( register T  arg) [inline]

Definition at line 76 of file CExp.h.

References PI2.

template<class T >
int casa::CExp< T >::hashFunction ( arg) [inline]

Definition at line 82 of file CExp.h.

References casa::abs(), casa::fmod(), PI2, and casa::CExp< T >::Step.

Referenced by casa::CExp< T >::imag(), and casa::CExp< T >::real().

template<class T >
T casa::CExp< T >::imag ( arg) [inline]

Definition at line 107 of file CExp.h.

References casa::CExp< T >::hashFunction(), and casa::CExp< T >::ITable.

template<class T >
int casa::CExp< T >::myhash2 ( register double  arg) [inline]

{return (int)(myhash(arg/PI2)/Step);}

Definition at line 85 of file CExp.h.

References casa::CExp< T >::Size.

template<class T >
std::complex<T> casa::CExp< T >::operator() ( T &  arg) [inline]

int N=hashFunction(arg);

int N=HASH(arg); T t=arg/PI2;int N=MYHASH2(t); T t=arg/PI2;int N=(int)MYHASH3(t)/Step; int N=myhash2(arg/PI2);

Definition at line 96 of file CExp.h.

References casa::abs(), casa::fmod(), casa::CExp< T >::ITable, N, PI2, casa::CExp< T >::RTable, and casa::CExp< T >::Step.

template<class T >
T casa::CExp< T >::real ( arg) [inline]

Definition at line 108 of file CExp.h.

References casa::CExp< T >::hashFunction(), and casa::CExp< T >::RTable.

template<class T >
void casa::CExp< T >::reim ( T &  arg,
T &  re,
T &  im 
) [inline]

Definition at line 109 of file CExp.h.

References HASH, casa::CExp< T >::ITable, N, and casa::CExp< T >::RTable.


Member Data Documentation

template<class T >
Vector<T> casa::CExp< T >::ITable [private]
template<class T >
Vector<T> casa::CExp< T >::RTable [private]
template<class T >
int casa::CExp< T >::Size [private]

Definition at line 114 of file CExp.h.

Referenced by casa::CExp< T >::build(), casa::CExp< T >::CExp(), and casa::CExp< T >::myhash2().

template<class T >
T casa::CExp< T >::Step [private]

The documentation for this class was generated from the following file: