Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'restrict' and 'readonly' argument to buffers #1237

Open
robertwb opened this issue Apr 2, 2011 · 2 comments
Open

'restrict' and 'readonly' argument to buffers #1237

robertwb opened this issue Apr 2, 2011 · 2 comments

Comments

@robertwb
Copy link
Contributor

robertwb commented Apr 2, 2011

We should support

np.ndarray[restrict=True, readonly=True](int,) a

both which according to Sturla Molden gives a performance increase.

http://thread.gmane.org/gmane.comp.python.cython.devel/7717/focus=7851

http://thread.gmane.org/gmane.comp.python.cython.devel/8068/focus=8069

I'll start merging...

Migrated from http://trac.cython.org/ticket/678

@robertwb
Copy link
Contributor Author

robertwb commented Apr 2, 2011

@dagss commented

Notes to self..:

Sturla's patch up on dagss:restrict (based on Cython 0.11.3).

RESTRICT -> Cy_RESTRICT etc., and only if we need them.

Write tests!

@robertwb
Copy link
Contributor Author

robertwb commented May 9, 2012

scoder changed milestone from 0.15 to wishlist
commented

@robertwb robertwb added this to the wishlist milestone Aug 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant