Data Structures | Defines | Functions | Variables

src/obase/Target.c File Reference

Data Structures

struct  TargetData

Defines

#define NORM   1
#define fftwf_free   fftw_free

Functions

void my_zset (const int N, void *alpha, void *X, const int incX)
bool checkTargetDim (MATRIX *f, int Nz)
void newTarget (MATRIX f, int N, int Ny, int Nz, BaseDirectory *baseDir, bool debug, bool useFourierTransform)
void NormalizeFz ()
void NormalizeFzLSQR ()
void Buildup (int ix, int iy, MAP_DEPTH_MATRIX *T, FloatComplex *scaleFactor, FloatComplex **tp)
void BuildupLSQR (int ix, int iy, MAP_DEPTH_MATRIX *T, FloatComplex *scaleFactor, FloatComplex **tp)
void printTarget (MAP_DEPTH_MATRIX T)
MAP_DEPTH_MATRIXconstructTarget (void(*NormalizeFz)(), void(*Buildup)(int, int, MAP_DEPTH_MATRIX *, FloatComplex *, FloatComplex **))
void writeTarget (Float sigmah, int sigmaStep)
void resetTarget (Float sigmah, int sigmaStep)
void resetTargetLSQR (Float sigmah, int sigmaStep)
MATRIX readFullTarget (char *inputFilename, MultiDimFits targetInfo, int N, int Ny, int Nz, Float sigmaCurrentValue, Float sigmaCurrentStep, BaseDirectory *baseDir, bool debug, bool useFourierTransform)
MATRIX readZComponentTarget (char **inputFilenames, int nFilenames, int Nz)
void readTarget (TargetInfo targetInfo, int N, int Ny, int Nz, Float sigmaCurrentValue, Float sigmaCurrentStep, BaseDirectory *baseDir, bool debug, bool useFourierTransform)
MAP_DEPTH_MATRIXgetTarget ()
void freeTarget ()

Variables

static MATRIX Target_f
 > Single instance of input parameter f(z; z0)
static MAP_DEPTH_MATRIXTarget = NULL
 > Single instance of the target
static struct TargetData targetData

Define Documentation

#define fftwf_free   fftw_free
#define NORM   1

Function Documentation

void Buildup ( int  ix,
int  iy,
MAP_DEPTH_MATRIX T,
FloatComplex *  scaleFactor,
FloatComplex **  tp 
)
void BuildupLSQR ( int  ix,
int  iy,
MAP_DEPTH_MATRIX T,
FloatComplex *  scaleFactor,
FloatComplex **  tp 
)

Really, this should be called scaleDepthByKxKy because we are scaling the target depth function by each 2DTarget(kx,ky) element. Ok, the real reason for two versions of this function is because multiplyScalarZ produces slightly different numbers than cblas_zscal, and this causes all the results of tests to be slightly different, and I don't want to change all the expected output files for testing because they are huge.

Parameters:
[in] ix Index of kx,ky element in 2D target function.
[in] iy Index of kx,ky element in 2D target function.
[in,out] T Pointer to MAP_DEPTH_MATRIX containing target function.
[in] scaleFactor Scalar value at 2DTarget(kx,ky)
[in,out] tp Pointer inside Target where changes are made.
void my_zset ( const int  N,
void *  alpha,
void *  X,
const int  incX 
)
void NormalizeFz (  ) 
void NormalizeFzLSQR (  ) 
void printTarget ( MAP_DEPTH_MATRIX  T  ) 

Prints target function to the screen.

Parameters:
[in] T A MAP_DEPTH_MATRIX containing the target function.
MATRIX readZComponentTarget ( char **  inputFilenames,
int  nFilenames,
int  Nz 
)
void resetTargetLSQR ( Float  sigmah,
int  sigmaStep 
)

Variable Documentation

MAP_DEPTH_MATRIX* Target = NULL [static]

> Single instance of the target

MATRIX Target_f [static]

> Single instance of input parameter f(z; z0)

struct TargetData targetData [static]
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines