Cloudy
Spectral Synthesis Code for Astrophysics
Loading...
Searching...
No Matches
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)
 
#define V1FUN_PD_8(FUN, V)
 
#define V1FUN_PS_4(FUN, V)
 
#define V1FUN_PS_8(FUN, V)
 
#define V1FUN_PS_16(FUN, V)
 
#define V1FUN2_4(FUN, V)
 
#define V1FUN2_8(FUN, V)
 
#define V1FUN2_PD_4(FUN, V)
 
#define V1FUN2_PS_4(FUN, V)
 
#define V1FUN2_PS_8(FUN, 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

◆ V1FUN2_4

#define V1FUN2_4 ( FUN,
V )
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:20
static double x0[83]
Definition atmdat_3body.cpp:23
static double x1[83]
Definition atmdat_3body.cpp:28

◆ V1FUN2_8

#define V1FUN2_8 ( FUN,
V )
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)

◆ V1FUN2_PD_4

#define V1FUN2_PD_4 ( FUN,
V )
Value:
V1FUN2_4(FUN, V)
#define V1FUN2_4(FUN, V)
Definition vectorize_math.h:663

Referenced by vhypot().

◆ V1FUN2_PS_4

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

Referenced by vhypot().

◆ V1FUN2_PS_8

#define V1FUN2_PS_8 ( FUN,
V )
Value:
V1FUN2_8(FUN##f, V)
#define V1FUN2_8(FUN, V)
Definition vectorize_math.h:669

Referenced by vhypot().

◆ V1FUN_16

#define V1FUN_16 ( FUN,
V )
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)

◆ V1FUN_4

#define V1FUN_4 ( FUN,
V )
Value:
y[0] = FUN(x0); \
y[1] = FUN(x1); \
y[2] = FUN(x2); \
y[3] = FUN(x3)

◆ V1FUN_8

#define V1FUN_8 ( FUN,
V )
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)

◆ V1FUN_PD_4

#define V1FUN_PD_4 ( FUN,
V )
Value:
V1FUN_4(FUN, V)
#define V1FUN_4(FUN, V)
Definition vectorize_math.h:614

Referenced by vasinh(), vexp(), vexp10(), vexpm1(), vfast_asinh(), vlog(), vlog10(), vlog1p(), and vsqrt().

◆ V1FUN_PD_8

#define V1FUN_PD_8 ( FUN,
V )
Value:
V1FUN_8(FUN, V)
#define V1FUN_8(FUN, V)
Definition vectorize_math.h:620

Referenced by vasinh(), vexp(), vexp10(), vexpm1(), vfast_asinh(), vlog(), vlog10(), vlog1p(), and vsqrt().

◆ V1FUN_PS_16

#define V1FUN_PS_16 ( FUN,
V )
Value:
V1FUN_16(FUN##f, V)
#define V1FUN_16(FUN, V)
Definition vectorize_math.h:630

Referenced by vasinh(), vexp(), vexp10(), vexpm1(), vfast_asinh(), vlog(), vlog10(), vlog1p(), and vsqrt().

◆ V1FUN_PS_4

#define V1FUN_PS_4 ( FUN,
V )
Value:
V1FUN_4(FUN##f, V)

Referenced by vasinh(), vexp(), vexp10(), vexpm1(), vfast_asinh(), vlog(), vlog10(), vlog1p(), and vsqrt().

◆ V1FUN_PS_8

#define V1FUN_PS_8 ( FUN,
V )
Value:
V1FUN_8(FUN##f, V)

Referenced by vasinh(), vexp(), vexp10(), vexpm1(), vfast_asinh(), vlog(), vlog10(), vlog1p(), and vsqrt().

Function Documentation

◆ vecfun()

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

◆ vecfun2()

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) )
inline

References x1, and x2.

Referenced by vhypot(), and vhypot().