Showing posts with label index. Show all posts
Showing posts with label index. Show all posts

Sunday, November 11, 2012

Coordinates of numpy array from index and shape (Python)

Coordinates of numpy array from index and shape (Python):
Python
recipe 578302

by Garrett


(convert, coordinates, index, numpy, python).





returns the coordinates of a numpy array given the index and the shape. A first_index_et function is given as example code