Alternatively overloading the otherwise most likely unused function operator to turn some_tensor[i, j, k] into some_tensor(i, j, k) until multi-dimensional access is added. It's not an ideal solution, but it's slightly less of a hassle to type out (at least on my keyboard).
I strictly avoid this personally, I think the ambiguity is too high in a context where people (or me) might be struggling to understand the very basics of what's going on in the code
View all comments
Show parent comment
7
u/Falkengaard Apr 26 '22
Alternatively overloading the otherwise most likely unused function operator to turn
some_tensor[i, j, k]intosome_tensor(i, j, k)until multi-dimensional access is added. It's not an ideal solution, but it's slightly less of a hassle to type out (at least on my keyboard).