4 ms·
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.
by waynecochran 3y ago
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.
- sampo 3y agoPick 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.