source:
sasview/sansmodels/src/sans/models/c_extensions/c_models.c
@
8a25523
Last change on this file since 8a25523 was eba9885, checked in by Gervaise Alina <gervyh@…>, 15 years ago | |
---|---|
|
|
File size: 1.4 KB |
Rev | Line | |
---|---|---|
[ae3ce4e] | 1 | /** c_models |
2 | * | |
[af03ddd] | 3 | * Module containing all SANS model extensions |
[ae3ce4e] | 4 | * |
5 | * @author M.Doucet / UTK | |
6 | */ | |
7 | #include <Python.h> | |
[812b901] | 8 | #define PY_ARRAY_UNIQUE_SYMBOL PyArray_API_sans |
9 | #include "arrayobject.h" | |
[ae3ce4e] | 10 | /** |
11 | * Define empty module | |
12 | */ | |
13 | static PyMethodDef module_methods[] = { | |
[af03ddd] | 14 | {NULL} |
[ae3ce4e] | 15 | }; |
16 | ||
17 | ||
18 | #ifndef PyMODINIT_FUNC /* declarations for DLL import/export */ | |
19 | #define PyMODINIT_FUNC void | |
20 | #endif | |
21 | PyMODINIT_FUNC | |
[af03ddd] | 22 | initc_models(void) |
[ae3ce4e] | 23 | { |
24 | PyObject* m; | |
25 | ||
26 | m = Py_InitModule3("c_models", module_methods, | |
27 | "C extension module for SANS scattering models."); | |
[812b901] | 28 | |
29 | import_array(); | |
[ae3ce4e] | 30 | addCCylinderModel(m); |
[8a48713] | 31 | addCParallelepipedModel(m); |
[ae3ce4e] | 32 | addCCoreShellCylinderModel(m); |
33 | addCCoreShellModel(m); | |
34 | addCEllipsoidModel(m); | |
35 | addCSphereModel(m); | |
[25579e8] | 36 | addCHardsphereStructure(m); |
37 | addCStickyHSStructure(m); | |
38 | addCHayterMSAStructure(m); | |
39 | addCSquareWellStructure(m); | |
[db1dcef] | 40 | addCDiamEllipFunc(m); |
41 | addCDiamCylFunc(m); | |
[ae3ce4e] | 42 | addCEllipticalCylinderModel(m); |
[5068697] | 43 | addCTriaxialEllipsoidModel(m); |
44 | addCFlexibleCylinderModel(m); | |
45 | addCStackedDisksModel(m); | |
[27a0771] | 46 | addCLamellarPSModel(m); |
47 | addCLamellarPSHGModel(m); | |
48 | addCProlateModel(m); | |
49 | addCOblateModel(m); | |
[34c3020] | 50 | addCLamellarModel(m); |
51 | addCLamellarFFHGModel(m); | |
[ae3ce4e] | 52 | addDisperser(m); |
53 | addCGaussian(m); | |
[eba9885] | 54 | addCSchulz(m); |
55 | addCLogNormal(m); | |
[ae3ce4e] | 56 | addCLorentzian(m); |
[793c988] | 57 | addCHollowCylinderModel(m); |
[3d25331f] | 58 | addCMultiShellModel(m); |
59 | addCVesicleModel(m); | |
60 | addCBinaryHSModel(m); | |
[2c4b289] | 61 | addCBinaryHSPSF11Model(m); |
[ae3ce4e] | 62 | |
63 | } |
Note: See TracBrowser
for help on using the repository browser.