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.
Try x[{1,2}]
Activity
eugene-sanscartier commented on Sep 29, 2024
Try x[{1,2}]