nanshe/nanshe/expanded_numpy.py: For index_at_pos, try `swapaxes` instead of `rollaxis` as this should be more efficient as it is O(1) vs. O(N) where N is the array dimension. Additionally, `swapaxes` is implemented in C; whereas, `rollaxis` is in Python.
nanshe/nanshe/expanded_numpy.py: For index_at_pos, try `swapaxes` instead of `rollaxis` as this should be more efficient as it is O(1) vs. O(N) where N is the array dimension. Additionally, `swapaxes` is implemented in C; whereas, `rollaxis` is in Python.

jakirkham/nanshe,nanshe-org/nanshe,DudLab/nanshe,jakirkham/nanshe,nanshe-org/nanshe,DudLab/nanshe