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

ESS_GUIESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_openclESS_GUI_sync_sascalc
Last change on this file since a8e6394 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
RevLine 
[eca7c6f]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
[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]29void 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
34void genicomXY(GenI*, int npoints, double* qx, double* qy, double *I_out);
35void genicom(GenI*, int npoints, double* q, double *I_out);
36
37#endif
Note: See TracBrowser for help on using the repository browser.