source:
sasview/src/sas/sascalc/calculator/c_extensions/sld2i.h
@
a8e6394
Last change on this file since a8e6394 was b8080e1, checked in by Piotr Rozyczko <rozyczko@…>, 6 years ago | |
---|---|
|
|
File size: 787 bytes |
Rev | Line | |
---|---|---|
[eca7c6f] | 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 | |
[b8080e1] | 12 | int is_avg; |
[eca7c6f] | 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 | |
[b8080e1] | 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, | |
[eca7c6f] | 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.