4 ms·
That's good, but in Fortran, Matlab, R, Julia, and Python/NumPy you can slice multidimensional arrays and have strides other than 1, for example x(1:9:2,1:5)
by Bostonian 5y ago
That's good, but in Fortran, Matlab, R, Julia, and Python/NumPy you can slice multidimensional arrays and have strides other than 1, for example
x(1:9:2,1:5)
which returns a matrix with the first 5 elements of every other row. Will C++ get something like this?
- gigatexal 5y agoGood question, I dunno. Perhaps with another abstraction like this?