source: sasview/src/sas/sascalc/calculator/c_extensions/sld2i.h @ eca7c6f

ESS_GUIESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalc
Last change on this file since eca7c6f was eca7c6f, checked in by Piotr Rozyczko <rozyczko@…>, 6 years ago

Missing header file added

  • Property mode set to 100755
File size: 762 bytes
Line 
1/**
2Computes 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 */
10typedef struct {
11        // vectors
12        int n_pix;
13        double* x_val;
14        double* y_val;
15        double* z_val;
16        double* sldn_val;
17        double* mx_val;
18        double* my_val;
19        double* mz_val;
20        double* vol_pix;
21    // spin ratios
22    double inspin;
23    double outspin;
24    double stheta;
25} GenI;
26
27// Constructor
28void initGenI(GenI*, int npix, double* x, double* y, double* z, double* sldn,
29                double* mx, double* my, double* mz, double* voli,
30                double in_spin, double out_spin,
31                double s_theta);
32// compute function
33void genicomXY(GenI*, int npoints, double* qx, double* qy, double *I_out);
34void genicom(GenI*, int npoints, double* q, double *I_out);
35
36#endif
Note: See TracBrowser for help on using the repository browser.