Daniel Lemire's blog
lemire.me
Add New Subscription
Post
(required) *
Required; the Post you're subscribing to.
Comment
— All Comments/Replies —
Feb 13th, 2005 2:16 pm — You can try this: def positionMax(sequen[...]
May 7th, 2008 8:31 pm — "Protector one" writes: I’m sorry SwiftCoder, but I believe th[...]
Dec 17th, 2008 11:27 am — "kralin" writes: array.index(max(array)) is it too simple?
Dec 18th, 2008 1:48 pm — "Sam" writes: import numpy array = numpy.array ( [1,2,[...]
Jan 29th, 2011 4:41 pm — "Mapio" writes: In case of duplicate values you solution[...]
Apr 27th, 2011 3:59 pm — How about max(xrange(len(array)), key=ar[...]
Jan 18th, 2013 7:29 pm — "Kasia" writes: numpy.ndarray object has no attributes i[...]
May 14th, 2019 5:18 pm — "jean" writes: argmax=max([(i[0], array[i[0]]) \ for i [...]
Mar 9th, 2021 6:05 am — "Dang minh tan" writes: great, much faster!
Email
(required) *
First Name
(required) *
Last Name
Deliver
(required) *
instantly
hourly
daily
weekly
Any value that is not
instantly
results in a digest instead of instant notifications.