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

no candidates with strided array #2108

Open
pdumon opened this issue May 11, 2023 · 2 comments
Open

no candidates with strided array #2108

pdumon opened this issue May 11, 2023 · 2 comments

Comments

@pdumon
Copy link

pdumon commented May 11, 2023

Hi,

I have a function defined like this:

# pythran export func(float64[:,:] or float64[::,::], float64, float64, float64, float64, float64, float64)
# pythran export func(int[:,:] or int[::,::], float64, float64, float64, int, int, float64)`

Then I get the below. I assume (though not sure) this is still because of the strided array / view, but thought the definition above would support that? This is on python 0.12.0 (newest release not available on conda-forge yet)

TypeError: Invalid call to pythranized function `func(float64[:, :] (is a view), float, float, float, float, float, float)'
E       Candidates are:
E       
E           - func(int[:,:], float64, float64, float64, int, int, float)
E           - func(int[::,::], float64, float64, float64, int, int, float)
E           - func(float64[:,:], float64, float64, float64, float64, float64, float)
E           - func(float64[::,::], float64, float64, float64, float64, float64, float)
@pdumon
Copy link
Author

pdumon commented May 11, 2023

Note: if I make an array with numpy.array() out of it then it works, but I thought this export spec should support a view as well?

@serge-sans-paille
Copy link
Owner

can you share the call site of func?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants