How to convert NDArray to double[][] #3437
Unanswered
jamalromero
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am looking for an efficient way to convert an NDArray with shape nxm to an array of double like 'double[][]'. Is there a builtin method in NDArray or NDManager or in the package to achieve that. I know there's
.toDoubleArray()
but it "flattens" the NDArray to 1D. Example, I want to convert:to
My method is this:
But I am wondering if there's a builtin and efficient way to achieve this using the same library.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions