[Numpy-discussion] invert bincounts?

Alan G Isaac alan.isaac at gmail.com
Thu Feb 27 21:11:33 EST 2014

I have a bincount array `cts`.
I'd like to produce any one array `a` such that `cts==np.bincounts(a)`.
Easy to do in a loop, but does NumPy offer a better (i.e., faster) way?

Alan Isaac

More information about the NumPy-Discussion mailing list