v0.14.0
Macros
quad-permu.h File Reference

Go to the source code of this file.

Macros

#define Perm1(a)   _F(1.0)
 
#define Dup1(w)   _F(w)
 
#define Cons1(a)   Perm1(a)
 
#define Dup0   Dup1
 
#define Dup10   Dup0
 
#define Perm10   Perm1
 
#define Perm2(a)   _F(0.5),_F(0.5)
 
#define Dup2(w)   _F(w)
 
#define Perm11(a)   _F(a),_F(1.)-(_F(a)), _F(1.)-(_F(a)),_F(a)
 
#define Dup11(w)   _F(w),_F(w)
 
#define Cons2(a)   Perm2(a)
 
#define Cons11(a)   Perm11(a)
 
#define Dup20   Dup0
 
#define Perm20(a)   _F(a),_F(1.)-(_F(a))
 
#define Perm3(a)   _F(1.)/_F(3.),_F(1.)/_F(3.),_F(1.)/_F(3.)
 
#define Dup3(w)   _F(w)
 
#define Perm21(a)
 
#define Dup21(w)   _F(w),_F(w),_F(w)
 
#define Perm111(a, b)
 
#define Dup111(w)   _F(w),_F(w),_F(w),_F(w),_F(w),_F(w)
 
#define Cons3(a)   Perm3(a)
 
#define Cons21(a)   Perm21(a)
 
#define Cons111(a, b)   Perm111(a,b)
 
#define Dup30   Dup0
 
#define Perm30(a, b)   _F(a),_F(b),_F(1.)-(_F(a))-(_F(b))
 
#define Perm4(a)   _F(0.25),_F(0.25),_F(0.25),_F(0.25)
 
#define Dup4(w)   _F(w)
 
#define Perm31(a)
 
#define Dup31(w)   _F(w),_F(w),_F(w),_F(w)
 
#define Perm22(a)
 
#define Dup22(w)   _F(w),_F(w),_F(w),_F(w),_F(w),_F(w)
 
#define Perm211(a, b)
 
#define Dup211(w)
 
#define Perm0111(p, a, b, c)   p,a,b,c, p,a,c,b, p,b,a,c, p,b,c,a, p,c,a,b, p,c,b,a
 
#define Perm1111(a, b, c)
 
#define Dup1111(w)   Dup111(w), Dup111(w), Dup111(w), Dup111(w)
 
#define Cons4(a)   Perm4(a)
 
#define Cons31(a)   Perm31(a)
 
#define Cons22(a)   Perm22(a)
 
#define Cons211(a, b)   Perm211(a,b)
 
#define Cons1111(a, b, c)   Perm111(a,b,c)
 
#define Dup40   Dup0
 
#define Perm40(a, b, c)   _F(a),_F(b),_F(c),_F(1.)-(_F(a))-(_F(b))-(_F(c))
 
#define PHG_QUAD_PERMU_H
 

Macro Definition Documentation

◆ Cons1

#define Cons1 (   a)    Perm1(a)

Definition at line 31 of file quad-permu.h.

◆ Cons11

#define Cons11 (   a)    Perm11(a)

Definition at line 45 of file quad-permu.h.

◆ Cons111

#define Cons111 (   a,
 
)    Perm111(a,b)

Definition at line 68 of file quad-permu.h.

◆ Cons1111

#define Cons1111 (   a,
  b,
  c 
)    Perm111(a,b,c)

Definition at line 115 of file quad-permu.h.

◆ Cons2

#define Cons2 (   a)    Perm2(a)

Definition at line 44 of file quad-permu.h.

◆ Cons21

#define Cons21 (   a)    Perm21(a)

Definition at line 67 of file quad-permu.h.

◆ Cons211

#define Cons211 (   a,
 
)    Perm211(a,b)

Definition at line 114 of file quad-permu.h.

◆ Cons22

#define Cons22 (   a)    Perm22(a)

Definition at line 113 of file quad-permu.h.

◆ Cons3

#define Cons3 (   a)    Perm3(a)

Definition at line 66 of file quad-permu.h.

◆ Cons31

#define Cons31 (   a)    Perm31(a)

Definition at line 112 of file quad-permu.h.

◆ Cons4

#define Cons4 (   a)    Perm4(a)

Definition at line 111 of file quad-permu.h.

◆ Dup0

#define Dup0   Dup1

Definition at line 34 of file quad-permu.h.

◆ Dup1

#define Dup1 (   w)    _F(w)

Definition at line 29 of file quad-permu.h.

◆ Dup10

#define Dup10   Dup0

Definition at line 35 of file quad-permu.h.

◆ Dup11

#define Dup11 (   w)    _F(w),_F(w)

Definition at line 42 of file quad-permu.h.

◆ Dup111

#define Dup111 (   w)    _F(w),_F(w),_F(w),_F(w),_F(w),_F(w)

Definition at line 64 of file quad-permu.h.

◆ Dup1111

#define Dup1111 (   w)    Dup111(w), Dup111(w), Dup111(w), Dup111(w)

Definition at line 109 of file quad-permu.h.

◆ Dup2

#define Dup2 (   w)    _F(w)

Definition at line 40 of file quad-permu.h.

◆ Dup20

#define Dup20   Dup0

Definition at line 48 of file quad-permu.h.

◆ Dup21

#define Dup21 (   w)    _F(w),_F(w),_F(w)

Definition at line 57 of file quad-permu.h.

◆ Dup211

#define Dup211 (   w)
Value:
_F(w),_F(w),_F(w),_F(w),_F(w),_F(w),\
_F(w),_F(w),_F(w),_F(w),_F(w),_F(w)

Definition at line 101 of file quad-permu.h.

◆ Dup22

#define Dup22 (   w)    _F(w),_F(w),_F(w),_F(w),_F(w),_F(w)

Definition at line 88 of file quad-permu.h.

◆ Dup3

#define Dup3 (   w)    _F(w)

Definition at line 53 of file quad-permu.h.

◆ Dup30

#define Dup30   Dup0

Definition at line 71 of file quad-permu.h.

◆ Dup31

#define Dup31 (   w)    _F(w),_F(w),_F(w),_F(w)

Definition at line 81 of file quad-permu.h.

◆ Dup4

#define Dup4 (   w)    _F(w)

Definition at line 76 of file quad-permu.h.

◆ Dup40

#define Dup40   Dup0

Definition at line 118 of file quad-permu.h.

◆ Perm0111

#define Perm0111 (   p,
  a,
  b,
  c 
)    p,a,b,c, p,a,c,b, p,b,a,c, p,b,c,a, p,c,a,b, p,c,b,a

Definition at line 103 of file quad-permu.h.

◆ Perm1

#define Perm1 (   a)    _F(1.0)

Definition at line 28 of file quad-permu.h.

◆ Perm10

#define Perm10   Perm1

Definition at line 36 of file quad-permu.h.

◆ Perm11

#define Perm11 (   a)    _F(a),_F(1.)-(_F(a)), _F(1.)-(_F(a)),_F(a)

Definition at line 41 of file quad-permu.h.

◆ Perm111

#define Perm111 (   a,
 
)
Value:
_F(a),_F(b),_F(1.)-(_F(a))-(_F(b)), \
_F(a),_F(1.)-(_F(a))-(_F(b)),_F(b), \
_F(b),_F(a),_F(1.)-(_F(a))-(_F(b)), \
_F(b),_F(1.)-(_F(a))-(_F(b)),_F(a), \
_F(1.)-(_F(a))-(_F(b)),_F(a),_F(b), \
_F(1.)-(_F(a))-(_F(b)),_F(b),_F(a)

Definition at line 58 of file quad-permu.h.

◆ Perm1111

#define Perm1111 (   a,
  b,
  c 
)
Value:
Perm0111(_F(a),_F(b),_F(c),_F(1.)-(_F(a))-(_F(b))-(_F(c))), \
Perm0111(_F(b),_F(a),_F(c),_F(1.)-(_F(a))-(_F(b))-(_F(c))), \
Perm0111(_F(c),_F(a),_F(b),_F(1.)-(_F(a))-(_F(b))-(_F(c))), \
Perm0111(_F(1.)-(_F(a))-(_F(b))-(_F(c)),_F(a),_F(b),_F(c))

Definition at line 104 of file quad-permu.h.

◆ Perm2

#define Perm2 (   a)    _F(0.5),_F(0.5)

Definition at line 39 of file quad-permu.h.

◆ Perm20

#define Perm20 (   a)    _F(a),_F(1.)-(_F(a))

Definition at line 49 of file quad-permu.h.

◆ Perm21

#define Perm21 (   a)
Value:
_F(1.)-(_F(a))-(_F(a)),_F(a),_F(a), \
_F(a),_F(1.)-(_F(a))-(_F(a)),_F(a), \
_F(a),_F(a),_F(1.)-(_F(a))-(_F(a))

Definition at line 54 of file quad-permu.h.

◆ Perm211

#define Perm211 (   a,
 
)
Value:
_F(a),_F(a),_F(b),_F(1.)-(_F(a))-(_F(a))-(_F(b)), \
_F(a),_F(a),_F(1.)-(_F(a))-(_F(a))-(_F(b)),_F(b), \
_F(a),_F(b),_F(a),_F(1.)-(_F(a))-(_F(a))-(_F(b)), \
_F(a),_F(b),_F(1.)-(_F(a))-(_F(a))-(_F(b)),_F(a), \
_F(a),_F(1.)-(_F(a))-(_F(a))-(_F(b)),_F(a),_F(b), \
_F(a),_F(1.)-(_F(a))-(_F(a))-(_F(b)),_F(b),_F(a), \
_F(b),_F(a),_F(a),_F(1.)-(_F(a))-(_F(a))-(_F(b)), \
_F(b),_F(a),_F(1.)-(_F(a))-(_F(a))-(_F(b)),_F(a), \
_F(b),_F(1.)-(_F(a))-(_F(a))-(_F(b)),_F(a),_F(a), \
_F(1.)-(_F(a))-(_F(a))-(_F(b)),_F(a),_F(a),_F(b), \
_F(1.)-(_F(a))-(_F(a))-(_F(b)),_F(a),_F(b),_F(a), \
_F(1.)-(_F(a))-(_F(a))-(_F(b)),_F(b),_F(a),_F(a)

Definition at line 89 of file quad-permu.h.

◆ Perm22

#define Perm22 (   a)
Value:
_F(a),_F(a),_F(.5)-(_F(a)),_F(.5)-(_F(a)), \
_F(a),_F(.5)-(_F(a)),_F(a),_F(.5)-(_F(a)), \
_F(a),_F(.5)-(_F(a)),_F(.5)-(_F(a)),_F(a), \
_F(.5)-(_F(a)),_F(a),_F(.5)-(_F(a)),_F(a), \
_F(.5)-(_F(a)),_F(a),_F(a),_F(.5)-(_F(a)), \
_F(.5)-(_F(a)),_F(.5)-(_F(a)),_F(a),_F(a)

Definition at line 82 of file quad-permu.h.

◆ Perm3

#define Perm3 (   a)    _F(1.)/_F(3.),_F(1.)/_F(3.),_F(1.)/_F(3.)

Definition at line 52 of file quad-permu.h.

◆ Perm30

#define Perm30 (   a,
 
)    _F(a),_F(b),_F(1.)-(_F(a))-(_F(b))

Definition at line 72 of file quad-permu.h.

◆ Perm31

#define Perm31 (   a)
Value:
_F(1.)-_F(3.)*(_F(a)),_F(a),_F(a),_F(a), \
_F(a),_F(1.)-_F(3.)*(_F(a)),_F(a),_F(a), \
_F(a),_F(a),_F(1.)-_F(3.)*(_F(a)),_F(a), \
_F(a),_F(a),_F(a),_F(1.)-_F(3.)*(_F(a))

Definition at line 77 of file quad-permu.h.

◆ Perm4

#define Perm4 (   a)    _F(0.25),_F(0.25),_F(0.25),_F(0.25)

Definition at line 75 of file quad-permu.h.

◆ Perm40

#define Perm40 (   a,
  b,
  c 
)    _F(a),_F(b),_F(c),_F(1.)-(_F(a))-(_F(b))-(_F(c))

Definition at line 119 of file quad-permu.h.

◆ PHG_QUAD_PERMU_H

#define PHG_QUAD_PERMU_H

Definition at line 121 of file quad-permu.h.

_F
#define _F(n)
Definition: quad.c:25
c
const double c
speed of light (cm/ns)
Definition: initial_diffusion.cpp:39
a
constexpr double a
Definition: approx_sphere.cpp:30
sdf_wavy_2d.w
int w
Definition: sdf_wavy_2d.py:6
Perm0111
#define Perm0111(p, a, b, c)
Definition: quad-permu.h:103