import shutil from sympy.external import import_module from sympy.testing.pytest import skip from sympy.utilities._compilation.compilation import compile_link_import_strings from sympy.utilities._compilation.util import may_xfail numpy = import_module('numpy') cython = import_module('cython') _sources1 = [ ('sigmoid.c', r""" #include void sigmoid(int n, const double * const restrict in, double * const restrict out, double lim){ for (int i=0; i