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

missing documentation for indexed access? #2806

Open
KrisThielemans opened this issue Sep 28, 2024 · 1 comment
Open

missing documentation for indexed access? #2806

KrisThielemans opened this issue Sep 28, 2024 · 1 comment

Comments

@KrisThielemans
Copy link

Possibly I missed it, but I have been looking for documentation on how to access a single element of an xtensor. I found xt::indexed_view(x, {{1,2}}) but it was only in some examples I found that x(1,2) works as well.

@eugene-sanscartier
Copy link

Try x[{1,2}]

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