News for hackers. Stuff that matters.
Re:Giving up on Julia (2016) by derriz on Sunday August 18, 2019 @02:27PM (#20731933)
I agree and I would have been a shrill critic of any 1-based indexing.

Most of the classic linear algebra algorithms seem to be described using 1-based indexing and the last time I needed to use one of these algorithms, I stubbornly tried to translate everything into zero-based indexing which was more difficult than you'd imagine and it was difficult to have confidence that I had correctly captured the algorithm.

I switched to using a 1-based matrix implementation and everything became trivial. It's not that hard to switch between looping from 0 to n (exclusive) and looping from 1 to n (inclusive).

There are no comments on this comment yet.