/** c_models * * Module containing all SANS model extensions * * @author M.Doucet / UTK */ #include #define PY_ARRAY_UNIQUE_SYMBOL PyArray_API_sans #include "arrayobject.h" /** * Define empty module */ static PyMethodDef module_methods[] = { {NULL} }; #ifndef PyMODINIT_FUNC /* declarations for DLL import/export */ #define PyMODINIT_FUNC void #endif PyMODINIT_FUNC initc_models(void) { PyObject* m; m = Py_InitModule3("c_models", module_methods, "C extension module for SANS scattering models."); import_array(); addCCylinderModel(m); addCParallelepipedModel(m); addCCoreShellCylinderModel(m); addCCoreShellModel(m); addCCoreFourShellModel(m); addCEllipsoidModel(m); addCSphereModel(m); addCFuzzySphereModel(m); addCHardsphereStructure(m); addCStickyHSStructure(m); addCHayterMSAStructure(m); addCSquareWellStructure(m); addCDiamEllipFunc(m); addCDiamCylFunc(m); addCEllipticalCylinderModel(m); addCTriaxialEllipsoidModel(m); addCFlexibleCylinderModel(m); addCFlexCylEllipXModel(m); addCStackedDisksModel(m); addCLamellarPSModel(m); addCLamellarPSHGModel(m); addCProlateModel(m); addCOblateModel(m); addCLamellarModel(m); addCLamellarFFHGModel(m); addDisperser(m); addCGaussian(m); addCSchulz(m); addCLogNormal(m); addCLorentzian(m); addCHollowCylinderModel(m); addCMultiShellModel(m); addCVesicleModel(m); addCBinaryHSModel(m); addCBinaryHSPSF11Model(m); addCPoly_GaussCoil(m); addCFractalModel(m); }