quemb.shared.helper.ravel_Fortran¶
- quemb.shared.helper.ravel_Fortran(a, b, n_rows)¶
Flatten the index a, b assuming column-mayor/Fortran indexing
The resulting indexation for a 3 by 4 matrix looks like this:
0 3 6 9 1 4 7 10 2 5 8 11
Works element-wise for scalars and for arrays of indices.