casa
$Rev:20696$
|
Call this inline as f(arg/PI2) More...
#include <CExp.h>
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) |
T | imag (T arg) |
T | real (T arg) |
void | reim (T &arg, T &re, T &im) |
Private Attributes | |
Vector< T > | RTable |
Vector< T > | ITable |
T | Step |
int | Size |
Call this inline as f(arg/PI2)
casa::CExp< T >::CExp | ( | ) | [inline] |
Definition at line 58 of file CExp.h.
References casa::CExp< T >::Size.
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.
void casa::CExp< T >::build | ( | int | n | ) | [inline] |
Definition at line 60 of file CExp.h.
References casa::cos(), casa::CExp< T >::ITable, PI2, casa::CExp< T >::RTable, casa::sin(), casa::CExp< T >::Size, and casa::CExp< T >::Step.
Referenced by casa::CExp< T >::CExp().
double casa::CExp< T >::f | ( | register T | arg | ) | [inline] |
int casa::CExp< T >::hashFunction | ( | T | 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().
T casa::CExp< T >::imag | ( | T | arg | ) | [inline] |
Definition at line 107 of file CExp.h.
References casa::CExp< T >::hashFunction(), and casa::CExp< T >::ITable.
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.
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.
T casa::CExp< T >::real | ( | T | arg | ) | [inline] |
Definition at line 108 of file CExp.h.
References casa::CExp< T >::hashFunction(), and casa::CExp< T >::RTable.
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.
Vector<T> casa::CExp< T >::ITable [private] |
Definition at line 112 of file CExp.h.
Referenced by casa::CExp< T >::build(), casa::CExp< T >::imag(), casa::CExp< T >::operator()(), and casa::CExp< T >::reim().
Vector<T> casa::CExp< T >::RTable [private] |
Definition at line 112 of file CExp.h.
Referenced by casa::CExp< T >::build(), casa::CExp< T >::operator()(), casa::CExp< T >::real(), and casa::CExp< T >::reim().
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().
T casa::CExp< T >::Step [private] |
Definition at line 113 of file CExp.h.
Referenced by casa::CExp< T >::build(), casa::CExp< T >::hashFunction(), and casa::CExp< T >::operator()().