{"action":"created","issue":{"url":"https://api.github.com/repos/scipy/scipy/issues/6195","repository_url":"https://api.github.com/repos/scipy/scipy","labels_url":"https://api.github.com/repos/scipy/scipy/issues/6195/labels{/name}","comments_url":"https://api.github.com/repos/scipy/scipy/issues/6195/comments","events_url":"https://api.github.com/repos/scipy/scipy/issues/6195/events","html_url":"https://github.com/scipy/scipy/pull/6195","id":157360200,"number":6195,"title":"ENH: Cython interface for special","user":{"login":"person142","id":15134881,"avatar_url":"https://avatars.githubusercontent.com/u/15134881?v=3","gravatar_id":"","url":"https://api.github.com/users/person142","html_url":"https://github.com/person142","followers_url":"https://api.github.com/users/person142/followers","following_url":"https://api.github.com/users/person142/following{/other_user}","gists_url":"https://api.github.com/users/person142/gists{/gist_id}","starred_url":"https://api.github.com/users/person142/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/person142/subscriptions","organizations_url":"https://api.github.com/users/person142/orgs","repos_url":"https://api.github.com/users/person142/repos","events_url":"https://api.github.com/users/person142/events{/privacy}","received_events_url":"https://api.github.com/users/person142/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/scipy/scipy/labels/enhancement","name":"enhancement","color":"bfe5bf"},{"url":"https://api.github.com/repos/scipy/scipy/labels/scipy.special","name":"scipy.special","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-28T22:50:06Z","updated_at":"2016-06-05T14:15:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/scipy/scipy/pulls/6195","html_url":"https://github.com/scipy/scipy/pull/6195","diff_url":"https://github.com/scipy/scipy/pull/6195.diff","patch_url":"https://github.com/scipy/scipy/pull/6195.patch"},"body":"This defines typed, scalar versions of many of the functions in\r\nscipy.special and makes them available to cimport in Cython. It uses\r\nfused types so that the functions have the same names and signatures\r\nas their ufunc counterparts.\r\n\r\nIt piggybacks off of the existing code generation in\r\ngenerate_ufuncs.py. In particular:\r\n\r\n- The process for adding new ufuncs is unchanged\r\n- When a new ufunc is added a Cython version will automatically be\r\n  created (subject to some restrictions mentioned at the end), and the\r\n  documentation and tests will be automatically updated.\r\n\r\nThis does not attempt to add Cython versions of:\r\n\r\n- ~~Ufuncs with multiple return arguments~~ Ufuncs with multiple return arguments are now supported\r\n- Ufuncs that have additional layers of python wrappers.\r\n\r\nWith more work these restrictions could be removed.\r\n\r\nCloses gh-5964."},"comment":{"url":"https://api.github.com/repos/scipy/scipy/issues/comments/223815425","html_url":"https://github.com/scipy/scipy/pull/6195#issuecomment-223815425","issue_url":"https://api.github.com/repos/scipy/scipy/issues/6195","id":223815425,"user":{"login":"person142","id":15134881,"avatar_url":"https://avatars.githubusercontent.com/u/15134881?v=3","gravatar_id":"","url":"https://api.github.com/users/person142","html_url":"https://github.com/person142","followers_url":"https://api.github.com/users/person142/followers","following_url":"https://api.github.com/users/person142/following{/other_user}","gists_url":"https://api.github.com/users/person142/gists{/gist_id}","starred_url":"https://api.github.com/users/person142/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/person142/subscriptions","organizations_url":"https://api.github.com/users/person142/orgs","repos_url":"https://api.github.com/users/person142/repos","events_url":"https://api.github.com/users/person142/events{/privacy}","received_events_url":"https://api.github.com/users/person142/received_events","type":"User","site_admin":false},"created_at":"2016-06-05T14:15:35Z","updated_at":"2016-06-05T14:15:35Z","body":"Yes, I need to track those failures down. I ran into an issue before that became gh-6208; might be more of the same.\r\n\r\nI have noticed one circumstance where cython is slower than numpy, and that's functions with a lot of complex arguments and an underlying c function that's using numpy cdoubles (e.g. the ``airy`` benchmark). I guess the extra time is coming from all the casting back and forth between ``double complex`` and ``cdouble``."}}
{"actor":{"display_login":"person142"}}