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