xtensor icon indicating copy to clipboard operation
xtensor copied to clipboard

missing documentation for indexed access?

Open KrisThielemans opened this issue 1 year ago • 1 comments

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.

KrisThielemans avatar Sep 28 '24 13:09 KrisThielemans

Try x[{1,2}]

eugene-sanscartier avatar Sep 29 '24 14:09 eugene-sanscartier