-
Notifications
You must be signed in to change notification settings - Fork 199
Implement array cast from integer to double #293
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
Comments
This is fixed in an ongoing work on my local branch. |
Nice, good to hear! |
Would this problem also explain why I get an exception with the following code, or is it a separate problem?
That is, assigning an integer to an array containing doubles (as initialized from np.zeros) causes an exception. |
@Plankton555 Never feel sorry. Thank you for opening the issues, by doing that you are contributing to the library in a way! |
(Sorry for polluting this thread, have no other way of contacting Plankton) @Plankton555: Could you try run your ported script against https://github.com/SciSharp/Numpy.NET ? I'd love to know if there are any issues. |
(Sorry for opening so many issues recently, I'm just reporting the problems I am running into while actually trying to port real-world code from Python to C#. I really appreciate the effort you do to implement a C# version of NumPy.)
Description
Unable to cast an integer array to a double array.
System.NotImplementedException: '_ChangeTypeOfArray from Int32 to Double'
Minimum example
Expected result
The array
mat
should contain the corresponding values, but casted to double ({0.0, 1.0, 2.0, 3.0}
).The text was updated successfully, but these errors were encountered: