Cloudy
Spectral Synthesis Code for Astrophysics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vectorize_math.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define V1FUN_4(FUN, V)
 
#define V1FUN_8(FUN, V)
 
#define V1FUN_16(FUN, V)
 
#define V1FUN_PD_4(FUN, V)   V1FUN_4(FUN, V)
 
#define V1FUN_PD_8(FUN, V)   V1FUN_8(FUN, V)
 
#define V1FUN_PS_4(FUN, V)   V1FUN_4(FUN##f, V)
 
#define V1FUN_PS_8(FUN, V)   V1FUN_8(FUN##f, V)
 
#define V1FUN_PS_16(FUN, V)   V1FUN_16(FUN##f, V)
 
#define V1FUN2_4(FUN, V)
 
#define V1FUN2_8(FUN, V)
 
#define V1FUN2_PD_4(FUN, V)   V1FUN2_4(FUN, V)
 
#define V1FUN2_PS_4(FUN, V)   V1FUN2_4(FUN##f, V)
 
#define V1FUN2_PS_8(FUN, V)   V1FUN2_8(FUN##f, V)
 

Functions

template<class T , class V >
void vecfun (const T x[], T y[], long nlo, long nhi, T(*scalfun1)(T), V(*)(V))
 
template<class T , class V >
void vecfun2 (const T x1[], const T x2[], T y[], long nlo, long nhi, T(*scalfun1)(T, T), V(*)(V, V))
 

Macro Definition Documentation

#define V1FUN2_4 (   FUN,
 
)
Value:
z[0] = FUN(x0, y0); \
z[1] = FUN(x1, y1); \
z[2] = FUN(x2, y2); \
z[3] = FUN(x3, y3)
static double x2[63]
Definition: atmdat_3body.cpp:18
static double x1[83]
Definition: atmdat_3body.cpp:27
static double x0[83]
Definition: atmdat_3body.cpp:22
#define V1FUN2_8 (   FUN,
 
)
Value:
z[0] = FUN(x0, y0); \
z[1] = FUN(x1, y1); \
z[2] = FUN(x2, y2); \
z[3] = FUN(x3, y3); \
z[4] = FUN(x4, y4); \
z[5] = FUN(x5, y5); \
z[6] = FUN(x6, y6); \
z[7] = FUN(x7, y7)
static double x2[63]
Definition: atmdat_3body.cpp:18
static double x1[83]
Definition: atmdat_3body.cpp:27
static double x0[83]
Definition: atmdat_3body.cpp:22
#define V1FUN2_PD_4 (   FUN,
 
)    V1FUN2_4(FUN, V)

Referenced by vhypot().

#define V1FUN2_PS_4 (   FUN,
 
)    V1FUN2_4(FUN##f, V)

Referenced by vhypot().

#define V1FUN2_PS_8 (   FUN,
 
)    V1FUN2_8(FUN##f, V)

Referenced by vhypot().

#define V1FUN_16 (   FUN,
 
)
Value:
y[0] = FUN(x0); \
y[1] = FUN(x1); \
y[2] = FUN(x2); \
y[3] = FUN(x3); \
y[4] = FUN(x4); \
y[5] = FUN(x5); \
y[6] = FUN(x6); \
y[7] = FUN(x7); \
y[8] = FUN(x8); \
y[9] = FUN(x9); \
y[10] = FUN(x10); \
y[11] = FUN(x11); \
y[12] = FUN(x12); \
y[13] = FUN(x13); \
y[14] = FUN(x14); \
y[15] = FUN(x15)
static double x2[63]
Definition: atmdat_3body.cpp:18
static double x1[83]
Definition: atmdat_3body.cpp:27
static double x0[83]
Definition: atmdat_3body.cpp:22
#define V1FUN_4 (   FUN,
 
)
Value:
y[0] = FUN(x0); \
y[1] = FUN(x1); \
y[2] = FUN(x2); \
y[3] = FUN(x3)
static double x2[63]
Definition: atmdat_3body.cpp:18
static double x1[83]
Definition: atmdat_3body.cpp:27
static double x0[83]
Definition: atmdat_3body.cpp:22
#define V1FUN_8 (   FUN,
 
)
Value:
y[0] = FUN(x0); \
y[1] = FUN(x1); \
y[2] = FUN(x2); \
y[3] = FUN(x3); \
y[4] = FUN(x4); \
y[5] = FUN(x5); \
y[6] = FUN(x6); \
y[7] = FUN(x7)
static double x2[63]
Definition: atmdat_3body.cpp:18
static double x1[83]
Definition: atmdat_3body.cpp:27
static double x0[83]
Definition: atmdat_3body.cpp:22
#define V1FUN_PD_4 (   FUN,
 
)    V1FUN_4(FUN, V)
#define V1FUN_PD_8 (   FUN,
 
)    V1FUN_8(FUN, V)
#define V1FUN_PS_16 (   FUN,
 
)    V1FUN_16(FUN##f, V)
#define V1FUN_PS_4 (   FUN,
 
)    V1FUN_4(FUN##f, V)
#define V1FUN_PS_8 (   FUN,
 
)    V1FUN_8(FUN##f, V)

Function Documentation

template<class T , class V >
void vecfun ( const T  x[],
y[],
long  nlo,
long  nhi,
T(*)(T)  scalfun1,
V(*)(V)   
)
inline
template<class T , class V >
void vecfun2 ( const T  x1[],
const T  x2[],
y[],
long  nlo,
long  nhi,
T(*)(T, T)  scalfun1,
V(*)(V, V)   
)
inline

Referenced by vhypot().