ESS_GUIESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalc
Last change
on this file since 62c6dc0 was
b8080e1,
checked in by Piotr Rozyczko <rozyczko@…>, 6 years ago
|
cherry picking sascalc changes from master SASVIEW-996
minor unit test fixes
|
-
Property mode set to
100755
|
File size:
787 bytes
|
Line | |
---|
1 | /** |
---|
2 | Computes the (magnetic) scattering form sld (n and m) profile |
---|
3 | */ |
---|
4 | #ifndef SLD2I_CLASS_H |
---|
5 | #define SLD2I_CLASS_H |
---|
6 | |
---|
7 | /** |
---|
8 | * Base class |
---|
9 | */ |
---|
10 | typedef struct { |
---|
11 | // vectors |
---|
12 | int is_avg; |
---|
13 | int n_pix; |
---|
14 | double* x_val; |
---|
15 | double* y_val; |
---|
16 | double* z_val; |
---|
17 | double* sldn_val; |
---|
18 | double* mx_val; |
---|
19 | double* my_val; |
---|
20 | double* mz_val; |
---|
21 | double* vol_pix; |
---|
22 | // spin ratios |
---|
23 | double inspin; |
---|
24 | double outspin; |
---|
25 | double stheta; |
---|
26 | } GenI; |
---|
27 | |
---|
28 | // Constructor |
---|
29 | void initGenI(GenI*, int is_avg, int npix, double* x, double* y, double* z, |
---|
30 | double* sldn, double* mx, double* my, double* mz, double* voli, |
---|
31 | double in_spin, double out_spin, |
---|
32 | double s_theta); |
---|
33 | // compute function |
---|
34 | void genicomXY(GenI*, int npoints, double* qx, double* qy, double *I_out); |
---|
35 | void genicom(GenI*, int npoints, double* q, double *I_out); |
---|
36 | |
---|
37 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.