hi all, I have array A, A.ndim = n, and 1-dimensional array B of length n. How can I get element of A with coords B[0],...,B[n-1]? i.e. A[B[0], B[1], ..., B[n-1])
A, B, n are not known till execution time, and can have unpredictable lengths (still n is usually small, no more than 4-5). I have tried via ix_ but haven't succeeded yet. Thx in advance, D. _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion