source: sasview/sansmodels/src/sans/models/c_extensions/c_models.c @ 8a25523

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since 8a25523 was eba9885, checked in by Gervaise Alina <gervyh@…>, 15 years ago

code for evalDistribution

  • Property mode set to 100644
File size: 1.4 KB
RevLine 
[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 */
13static 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
21PyMODINIT_FUNC
[af03ddd]22initc_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.