Re:Fortran 2023
by waynecochran on Wednesday November 22, 2023 @01:02PM
(#38382668)
C++ Eigen has become the defacto replacement for arrays for matrices and vectors. I am thinking this should make it more competitive w fortran in this domain.
[ Parent
| on HN ]
Pick out the even (i,j where both even) elements from a matrix
m[0::2, 0::2] // Numpy
m(0::2, 0::2) // Fortran [1]
m(seq(0, last, 2), seq(0, last, 2)) // C++ Eigen
[1] If you have declared the array to start indexing from 0.