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

Ptr returned for double[][] return type #21

Open
jgbos opened this issue Sep 3, 2015 · 1 comment
Open

Ptr returned for double[][] return type #21

jgbos opened this issue Sep 3, 2015 · 1 comment

Comments

@jgbos
Copy link

jgbos commented Sep 3, 2015

When I do an example method call where the return type is double[][], I get the following output

  julia> jcall(obj, "getDoubles", Array{Array{jdouble, 1}, 1}, ())
  Ptr{Void} @0x0000000008ff5340
@aviks
Copy link
Collaborator

aviks commented Sep 4, 2015

As stated in the documentation, multidimensional arrays are currently not supported very well in JavaCall.

Basically, there needs to be convert_result function for 2D arrays, similar to the existing one for 1D arrays. If you need an immediate workaround, you could call the underlying JNI accessor routines directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants