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

How to pass a slice? #1085

Closed
dakom opened this issue Dec 5, 2018 · 1 comment
Closed

How to pass a slice? #1085

dakom opened this issue Dec 5, 2018 · 1 comment

Comments

@dakom
Copy link
Contributor

dakom commented Dec 5, 2018

Looking at the nalgebra docs it seems that it can extract a slice (or pointer) from its matrices

What would be the (or one) correct way to pass these slices to JS?

Thanks!

@alexcrichton
Copy link
Contributor

Currently the best way to do so is to invoke an imported function inline rather than returning it directly to JS. #918 was an attempt to implement this and otherwise I think this is covered by #811 so we can convert it to a JsValue and return it, so I'm gonna close in favor of #811!

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

No branches or pull requests

2 participants