source:
sasview/sansmodels/src/sans/models/c_extensions/c_models.c
@
0b12abb5
Last change on this file since 0b12abb5 was c724ccd, checked in by Jae Cho <jhjcho@…>, 15 years ago | |
---|---|
|
|
File size: 1.5 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."); | |
[c724ccd] | 28 | |
[812b901] | 29 | import_array(); |
[ae3ce4e] | 30 | addCCylinderModel(m); |
[8a48713] | 31 | addCParallelepipedModel(m); |
[ae3ce4e] | 32 | addCCoreShellCylinderModel(m); |
33 | addCCoreShellModel(m); | |
[c724ccd] | 34 | addCCoreFourShellModel(m); |
[ae3ce4e] | 35 | addCEllipsoidModel(m); |
36 | addCSphereModel(m); | |
[c724ccd] | 37 | addCFuzzySphereModel(m); |
[25579e8] | 38 | addCHardsphereStructure(m); |
39 | addCStickyHSStructure(m); | |
40 | addCHayterMSAStructure(m); | |
41 | addCSquareWellStructure(m); | |
[db1dcef] | 42 | addCDiamEllipFunc(m); |
43 | addCDiamCylFunc(m); | |
[ae3ce4e] | 44 | addCEllipticalCylinderModel(m); |
[5068697] | 45 | addCTriaxialEllipsoidModel(m); |
46 | addCFlexibleCylinderModel(m); | |
[c724ccd] | 47 | addCFlexCylEllipXModel(m); |
[5068697] | 48 | addCStackedDisksModel(m); |
[27a0771] | 49 | addCLamellarPSModel(m); |
50 | addCLamellarPSHGModel(m); | |
51 | addCProlateModel(m); | |
52 | addCOblateModel(m); | |
[34c3020] | 53 | addCLamellarModel(m); |
54 | addCLamellarFFHGModel(m); | |
[ae3ce4e] | 55 | addDisperser(m); |
56 | addCGaussian(m); | |
[eba9885] | 57 | addCSchulz(m); |
58 | addCLogNormal(m); | |
[ae3ce4e] | 59 | addCLorentzian(m); |
[793c988] | 60 | addCHollowCylinderModel(m); |
[3d25331f] | 61 | addCMultiShellModel(m); |
62 | addCVesicleModel(m); | |
63 | addCBinaryHSModel(m); | |
[2c4b289] | 64 | addCBinaryHSPSF11Model(m); |
[c724ccd] | 65 | addCPoly_GaussCoil(m); |
66 | addCFractalModel(m); | |
[ae3ce4e] | 67 | |
68 | } |
Note: See TracBrowser
for help on using the repository browser.