19 #include "ObjCryst/CrystVector/CrystVector.h"
20 #ifdef __VFN_GEOM_STRUCT_FACTOR_USE_POINTERS
27 #define __VFN_GEOM_STRUCT_FACTOR_POINTERS_INIT const REAL *h,*k,*l; REAL*sf;\
28 h=hh.data();k=kk.data();l=ll.data();sf=sfsf.data(); for(long i=0;i<hh.numElements();i++){
29 #define __VFN_GEOM_STRUCT_FACTOR_POINTERS_END h++ ; k++ ; l++ ; sf++; };
38 #define __VFN_GEOM_STRUCT_FACTOR_POINTERS_INIT
39 #define __VFN_GEOM_STRUCT_FACTOR_POINTERS_END
49 const CrystVector_REAL&hh,
50 const CrystVector_REAL&kk,
51 const CrystVector_REAL&ll,
52 CrystVector_REAL& sfsf)
54 __VFN_GEOM_STRUCT_FACTOR_POINTERS_INIT
56 SF+=16*pow(cos((H+K)/4),2)*cos(H*x)*cos(K*y+H/4)*cos(L*z-H/4);
58 __VFN_GEOM_STRUCT_FACTOR_POINTERS_END
64 const CrystVector_REAL&hh,
65 const CrystVector_REAL&kk,
66 const CrystVector_REAL&ll,
67 CrystVector_REAL& sfsf)
69 __VFN_GEOM_STRUCT_FACTOR_POINTERS_INIT
71 SF+=16*pow(cos((K+H)/4),2)*cos(K*y)*cos(H*x+K/4)*cos(L*z-K/4);
73 __VFN_GEOM_STRUCT_FACTOR_POINTERS_END
79 const CrystVector_REAL&hh,
80 const CrystVector_REAL&kk,
81 const CrystVector_REAL&ll,
82 CrystVector_REAL& sfsf)
84 __VFN_GEOM_STRUCT_FACTOR_POINTERS_INIT
86 SF+=16*pow(cos((L+K)/4),2)*cos(K*y)*cos(L*z+K/4)*cos(H*x-K/4);
88 __VFN_GEOM_STRUCT_FACTOR_POINTERS_END
94 const CrystVector_REAL&hh,
95 const CrystVector_REAL&kk,
96 const CrystVector_REAL&ll,
97 CrystVector_REAL& sfsf)
99 __VFN_GEOM_STRUCT_FACTOR_POINTERS_INIT
101 SF+=16*pow(cos((-L+K)/4),2)*cos(L*z)*cos(K*y-L/4)*cos(H*x+L/4);
103 __VFN_GEOM_STRUCT_FACTOR_POINTERS_END
109 const CrystVector_REAL&hh,
110 const CrystVector_REAL&kk,
111 const CrystVector_REAL&ll,
112 CrystVector_REAL& sfsf)
114 __VFN_GEOM_STRUCT_FACTOR_POINTERS_INIT
116 SF+=16*pow(cos((H+L)/4),2)*cos(L*z)*cos(H*x+L/4)*cos(K*y-L/4);
118 __VFN_GEOM_STRUCT_FACTOR_POINTERS_END
124 const CrystVector_REAL&hh,
125 const CrystVector_REAL&kk,
126 const CrystVector_REAL&ll,
127 CrystVector_REAL& sfsf)
129 __VFN_GEOM_STRUCT_FACTOR_POINTERS_INIT
131 SF+=16*pow(cos((H-L)/4),2)*cos(H*x)*cos(L*z+H/4)*cos(K*y-H/4);
133 __VFN_GEOM_STRUCT_FACTOR_POINTERS_END
145 #undef __VFN_GEOM_STRUCT_FACTOR_POINTERS_INIT
146 #undef __VFN_GEOM_STRUCT_FACTOR_POINTERS_END
148 #undef __VFN_GEOM_STRUCT_FACTOR_USE_POINTERS
void RealGeomStructFactor_67ba_c(const REAL x, const REAL y, const REAL z, const CrystVector_REAL &h, const CrystVector_REAL &k, const CrystVector_REAL &l, CrystVector_REAL &rsf)
void RealGeomStructFactor_67cab(const REAL x, const REAL y, const REAL z, const CrystVector_REAL &h, const CrystVector_REAL &k, const CrystVector_REAL &l, CrystVector_REAL &rsf)
void RealGeomStructFactor_67bca(const REAL x, const REAL y, const REAL z, const CrystVector_REAL &h, const CrystVector_REAL &k, const CrystVector_REAL &l, CrystVector_REAL &rsf)
void RealGeomStructFactor_67a_cb(const REAL x, const REAL y, const REAL z, const CrystVector_REAL &h, const CrystVector_REAL &k, const CrystVector_REAL &l, CrystVector_REAL &rsf)
void RealGeomStructFactor_67(const REAL x, const REAL y, const REAL z, const CrystVector_REAL &h, const CrystVector_REAL &k, const CrystVector_REAL &l, CrystVector_REAL &rsf)
void RealGeomStructFactor_67_cba(const REAL x, const REAL y, const REAL z, const CrystVector_REAL &h, const CrystVector_REAL &k, const CrystVector_REAL &l, CrystVector_REAL &rsf)
The namespace which includes all objects (crystallographic and algorithmic) in ObjCryst++.