Re:Why physicists still use Fortran
by computerphage on Sunday December 18, 2016 @05:09PM
(#13207982)
It would be nice to have access to an overloadable index operator that works on multiple dimensions at once (like C#'s [1, 2, 5] syntax). It's sometimes not easy to write something to be efficient if it has to go one-by-one like [1][2][5].
[ Parent
| on HN ]
The ndarray library indexes via tuples, i.e. [(1,2,5)], which should be just as efficient as a built in syntax (if perhaps a bit uglier).