You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 typearr.dtype
.So might make sense to use
numpy.ndarray
internally so C is happy, and maybe we passarr.tolist()
to Python or something. Not sure of the best solution.This might be an issue for other staticly typed languages too.
The text was updated successfully, but these errors were encountered: