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

For 2D arrays C only works with numpy.ndarray #45

Open
ali-ramadhan opened this issue Sep 1, 2019 · 0 comments
Open

For 2D arrays C only works with numpy.ndarray #45

ali-ramadhan opened this issue Sep 1, 2019 · 0 comments

Comments

@ali-ramadhan
Copy link
Member

The problem modules try to produce native Python types to pass as input arguments.

This is usually good, but for problem with 2D array inputs like Game of Life, C needs numpy.ndarray inputs. C also generally likes numpy arrays as they're all of the same type arr.dtype.

So might make sense to use numpy.ndarray internally so C is happy, and maybe we pass arr.tolist() to Python or something. Not sure of the best solution.

This might be an issue for other staticly typed languages too.

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

1 participant