19 #include "ObjCryst/CrystVector/CrystVector.h"
21 #ifdef __VFN_GEOM_STRUCT_FACTOR_USE_POINTERS
28 #define __VFN_GEOM_STRUCT_FACTOR_POINTERS_INIT const REAL *h,*k,*l; REAL*sf;\
29 h=hh.data();k=kk.data();l=ll.data();sf=sfsf.data(); for(long i=0;i<hh.numElements();i++){
30 #define __VFN_GEOM_STRUCT_FACTOR_POINTERS_END h++ ; k++ ; l++ ; sf++; };
39 #define __VFN_GEOM_STRUCT_FACTOR_POINTERS_INIT
40 #define __VFN_GEOM_STRUCT_FACTOR_POINTERS_END
50 const CrystVector_REAL&hh,
51 const CrystVector_REAL&kk,
52 const CrystVector_REAL&ll,
53 CrystVector_REAL& sfsf)
55 __VFN_GEOM_STRUCT_FACTOR_POINTERS_INIT
57 SF+= 8*pow(cos((H+K+L)/4),2)*cos(L*z)*(cos(H*x)*cos(K*y)+cos(K*x)*cos(H*y));
59 __VFN_GEOM_STRUCT_FACTOR_POINTERS_END
67 const CrystVector_REAL&hh,
68 const CrystVector_REAL&kk,
69 const CrystVector_REAL&ll,
70 CrystVector_REAL& sfsf)
72 __VFN_GEOM_STRUCT_FACTOR_POINTERS_INIT
74 SF += (-8)*pow(cos((H+K+L)/4),2)*sin(L*z)*(sin(H*x)*sin(K*y)-sin(K*x)*sin(H*y));
76 __VFN_GEOM_STRUCT_FACTOR_POINTERS_END
90 #undef __VFN_GEOM_STRUCT_FACTOR_POINTERS_INIT
91 #undef __VFN_GEOM_STRUCT_FACTOR_POINTERS_END
93 #undef __VFN_GEOM_STRUCT_FACTOR_USE_POINTERS
void ImagGeomStructFactor_97(const REAL x, const REAL y, const REAL z, const CrystVector_REAL &h, const CrystVector_REAL &k, const CrystVector_REAL &l, CrystVector_REAL &isf)
void RealGeomStructFactor_97(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++.