How to convert a numpy-array (numpy.float64) to a .NET double-array #1818
Unanswered
MichaelJachan
asked this question in
Q&A
Replies: 1 comment 1 reply
-
There's no 'Standard way' because NumPy is but a library, albeit a popular one. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Environment
Hello! I searched the web and this repository, but i didnt find a standard way to convert a numpy-array (numpy.float64) to a .NET double-array.
I am coding in C#:
//Error: PythonException: 'numpy.float64' value cannot be converted to System.Double
AFAIK, i could write a converter (https://github.com/pythonnet/pythonnet/wiki/Codecs:-customizing-object-marshalling-between-.NET-and-Python)
My Question: But there should already be a standard way, right?
Many thanks, MJ:)
Beta Was this translation helpful? Give feedback.
All reactions