3 ms·
Base-1 makes sense in sciences where you've Fortran, MATLAB, R, Mathematica. If anything before Python's rise in popularity base-0 was the strange choice. Fortu
by forgotpwd16 6y ago
Base-1 makes sense in sciences where you've Fortran, MATLAB, R, Mathematica. If anything before Python's rise in popularity base-0 was the strange choice. Fortunately you can use arbitrary indices with OffsetArrays.
- pauljurczak 6y agoNot really. It was a choice for C and C++ and it has a very solid low level implementation and efficiency motivation. Unfortunately, it also became a curse for these languages. After many decades of existence, they still haven't introduced proper multidimensional arrays, other than a hodgepodge of competing library implementations.