src/ten/triple.c File Reference

#include "ten.h"
#include "privateTen.h"

Include dependency graph for triple.c:


Defines

#define SQRT6   2.449489742783178098197284
#define SQRT2   1.414213562373095048801689
#define SQRT3   1.732050807568877293527446
#define J1   (j[0])
#define J2   (j[1])
#define J3   (j[2])
#define K1   (k[0])
#define K2   (k[1])
#define K3   (k[2])
#define R1   (r[0])
#define R2   (r[1])
#define R3   (r[2])
#define MU1   (mu[0])
#define MU2   (mu[1])
#define MU3   (mu[2])
#define CONVERT1(dst, mid, src)
#define CONVERT2(dst, mdB, mdA, src)

Typedefs

typedef void(* tenTripleConverter )(double dst[3], const double src[3])

Functions

static void _iden (double dst[3], const double src[3])
static void _mu_ev (double mu[3], const double ev[3])
static void _xyz_ev (double xyz[3], const double _ev[3])
static void _ev_xyz (double ev[3], const double xyz[3])
static void _j_ev (double j[3], const double ev[3])
static void _k_mu (double k[3], const double mu[3])
static void _r_ev (double r[3], const double ev[3])
static void _r_mu (double r[3], const double mu[3])
static void _ev_wp (double ev[3], const double wp[3])
static void _wp_mu (double wp[3], const double mu[3])
static void _mu_j (double mu[3], const double j[3])
static void _r_j (double r[3], const double j[3])
static void _k_r (double k[3], const double r[3])
static void _wp_k (double wp[3], const double k[3])
static void _k_wp (double k[3], const double wp[3])
static void _rtz_xyz (double rThZ[3], const double XYZ[3])
static void _rtp_xyz (double RThPh[3], const double XYZ[3])
static void _xyz_rtz (double XYZ[3], const double rThZ[3])
static void _xyz_rtp (double XYZ[3], const double RThPh[3])
static void _rtz_k (double rThZ[3], const double k[3])
static void _k_rtz (double k[3], const double rThZ[3])
static void _rtp_r (double RThPh[3], const double r[3])
static void _r_rtp (double r[3], const double RThPh[3])
static void _wp_rtz (double wp[3], const double rThZ[3])
static void _rtz_wp (double rThZ[3], const double wp[3])
 CONVERT1 (ev, CONVERT1(xyz, CONVERT1(rtz)
void tenTripleConvertSingle_d (double dst[3], int dstType, const double src[3], const int srcType)
void tenTripleConvertSingle_f (float _dst[3], int dstType, const float _src[3], const int srcType)
void tenTripleCalcSingle_d (double dst[3], int ttype, double ten[7])
void tenTripleCalcSingle_f (float dst[3], int ttype, float ten[7])
int tenTripleCalc (Nrrd *nout, int ttype, const Nrrd *nten)
int tenTripleConvert (Nrrd *nout, int dstType, const Nrrd *nin, int srcType)

Variables

static double _xyzmat []

Define Documentation

#define CONVERT1 ( dst,
mid,
src   ) 

Value:

static void \
_##dst##_##src(double dst[3], const double src[3]) { \
  double mid[3]; \
  _##mid##_##src(mid, src); \
  _##dst##_##mid(dst, mid); \
}

#define CONVERT2 ( dst,
mdB,
mdA,
src   ) 

Value:

static void \
_##dst##_##src(double dst[3], const double src[3]) { \
  double mdA[3], mdB[3];  \
  _##mdA##_##src(mdA, src); \
  _##mdB##_##mdA(mdB, mdA); \
  _##dst##_##mdB(dst, mdB); \
}

#define J1   (j[0])

#define J2   (j[1])

#define J3   (j[2])

#define K1   (k[0])

#define K2   (k[1])

#define K3   (k[2])

#define MU1   (mu[0])

#define MU2   (mu[1])

#define MU3   (mu[2])

#define R1   (r[0])

#define R2   (r[1])

#define R3   (r[2])

#define SQRT2   1.414213562373095048801689

#define SQRT3   1.732050807568877293527446

#define SQRT6   2.449489742783178098197284


Typedef Documentation

typedef void(* tenTripleConverter)(double dst[3], const double src[3])


Function Documentation

static void _ev_wp ( double  ev[3],
const double  wp[3] 
) [static]

static void _ev_xyz ( double  ev[3],
const double  xyz[3] 
) [static]

static void _iden ( double  dst[3],
const double  src[3] 
) [static]

static void _j_ev ( double  j[3],
const double  ev[3] 
) [static]

static void _k_mu ( double  k[3],
const double  mu[3] 
) [static]

static void _k_r ( double  k[3],
const double  r[3] 
) [static]

static void _k_rtz ( double  k[3],
const double  rThZ[3] 
) [static]

static void _k_wp ( double  k[3],
const double  wp[3] 
) [static]

static void _mu_ev ( double  mu[3],
const double  ev[3] 
) [static]

static void _mu_j ( double  mu[3],
const double  j[3] 
) [static]

static void _r_ev ( double  r[3],
const double  ev[3] 
) [static]

static void _r_j ( double  r[3],
const double  j[3] 
) [static]

static void _r_mu ( double  r[3],
const double  mu[3] 
) [static]

static void _r_rtp ( double  r[3],
const double  RThPh[3] 
) [static]

static void _rtp_r ( double  RThPh[3],
const double  r[3] 
) [static]

static void _rtp_xyz ( double  RThPh[3],
const double  XYZ[3] 
) [static]

static void _rtz_k ( double  rThZ[3],
const double  k[3] 
) [static]

static void _rtz_wp ( double  rThZ[3],
const double  wp[3] 
) [static]

static void _rtz_xyz ( double  rThZ[3],
const double  XYZ[3] 
) [static]

static void _wp_k ( double  wp[3],
const double  k[3] 
) [static]

static void _wp_mu ( double  wp[3],
const double  mu[3] 
) [static]

static void _wp_rtz ( double  wp[3],
const double  rThZ[3] 
) [static]

static void _xyz_ev ( double  xyz[3],
const double  _ev[3] 
) [static]

static void _xyz_rtp ( double  XYZ[3],
const double  RThPh[3] 
) [static]

static void _xyz_rtz ( double  XYZ[3],
const double  rThZ[3] 
) [static]

CONVERT1 ( ev  ,
CONVERT1(  xyz,
CONVERT1(  rtz 
)

int tenTripleCalc ( Nrrd nout,
int  ttype,
const Nrrd nten 
)

void tenTripleCalcSingle_d ( double  dst[3],
int  ttype,
double  ten[7] 
)

void tenTripleCalcSingle_f ( float  dst[3],
int  ttype,
float  ten[7] 
)

int tenTripleConvert ( Nrrd nout,
int  dstType,
const Nrrd nin,
int  srcType 
)

void tenTripleConvertSingle_d ( double  dst[3],
int  dstType,
const double  src[3],
const int  srcType 
)

void tenTripleConvertSingle_f ( float  _dst[3],
int  dstType,
const float  _src[3],
const int  srcType 
)


Variable Documentation

double _xyzmat[] [static]

Initial value:

 {2/SQRT6, -1/SQRT6, -1/SQRT6,
             0,        1/SQRT2, -1/SQRT2,
             1/SQRT3,  1/SQRT3,  1/SQRT3}


Generated on Sat May 9 03:55:53 2009 for Teem by  doxygen 1.5.9