Nikolaus Rath wrote:
eat e.antero.ta...@gmail.com writes:
Nikolaus Rath Nikolaus at rath.org writes:
[snip]
Not quite, because I'm interested in the n largest values over all
elements, not the largest element in each row or column. But Keith's
solution seems to work fine, even though I'm
eat e.antero.ta...@gmail.com writes:
How do I best find out the indices of the largest x elements in an
array?
Just
a= np.asarray([[1, 8, 2], [2, 1, 3]])
print np.where((a.T== a.max(axis= 1)).T)
However, if any row contains more than 1 max entity, above will fail. Please
let me to know
Keith Goodman kwgood...@gmail.com writes:
On Wed, Apr 14, 2010 at 12:39 PM, Nikolaus Rath nikol...@rath.org wrote:
Keith Goodman kwgood...@gmail.com writes:
On Wed, Apr 14, 2010 at 8:49 AM, Keith Goodman kwgood...@gmail.com wrote:
On Wed, Apr 14, 2010 at 8:16 AM, Nikolaus Rath
On Thu, Apr 15, 2010 at 12:41 PM, Nikolaus Rath nikol...@rath.org wrote:
Keith Goodman kwgood...@gmail.com writes:
On Wed, Apr 14, 2010 at 12:39 PM, Nikolaus Rath nikol...@rath.org wrote:
Keith Goodman kwgood...@gmail.com writes:
On Wed, Apr 14, 2010 at 8:49 AM, Keith Goodman
Nikolaus Rath Nikolaus at rath.org writes:
[snip]
Not quite, because I'm interested in the n largest values over all
elements, not the largest element in each row or column. But Keith's
solution seems to work fine, even though I'm still struggling to
understand what's going on there .
My
On Thu, Apr 15, 2010 at 1:48 PM, Keith Goodman kwgood...@gmail.com wrote:
On Thu, Apr 15, 2010 at 12:41 PM, Nikolaus Rath nikol...@rath.org wrote:
Keith Goodman kwgood...@gmail.com writes:
On Wed, Apr 14, 2010 at 12:39 PM, Nikolaus Rath nikol...@rath.org wrote:
Keith Goodman
eat e.antero.ta...@gmail.com writes:
Nikolaus Rath Nikolaus at rath.org writes:
[snip]
Not quite, because I'm interested in the n largest values over all
elements, not the largest element in each row or column. But Keith's
solution seems to work fine, even though I'm still struggling to
Hello,
How do I best find out the indices of the largest x elements in an
array?
Example:
a = [ [1,8,2], [2,1,3] ]
magic_function(a, 2) == [ (0,1), (1,2) ]
Since the largest 2 elements are at positions (0,1) and (1,2).
Best,
-Niko
--
»Time flies like an arrow, fruit flies like a
On Wed, Apr 14, 2010 at 11:16 AM, Nikolaus Rath nikol...@rath.org wrote:
Hello,
How do I best find out the indices of the largest x elements in an
array?
Example:
a = [ [1,8,2], [2,1,3] ]
magic_function(a, 2) == [ (0,1), (1,2) ]
Since the largest 2 elements are at positions (0,1) and
On Wed, Apr 14, 2010 at 8:16 AM, Nikolaus Rath nikol...@rath.org wrote:
Hello,
How do I best find out the indices of the largest x elements in an
array?
Example:
a = [ [1,8,2], [2,1,3] ]
magic_function(a, 2) == [ (0,1), (1,2) ]
Since the largest 2 elements are at positions (0,1) and
On Wed, Apr 14, 2010 at 10:16 AM, Nikolaus Rath nikol...@rath.org wrote:
Hello,
How do I best find out the indices of the largest x elements in an
array?
Example:
a = [ [1,8,2], [2,1,3] ]
magic_function(a, 2) == [ (0,1), (1,2) ]
Since the largest 2 elements are at positions (0,1) and
On Wed, Apr 14, 2010 at 8:49 AM, Keith Goodman kwgood...@gmail.com wrote:
On Wed, Apr 14, 2010 at 8:16 AM, Nikolaus Rath nikol...@rath.org wrote:
Hello,
How do I best find out the indices of the largest x elements in an
array?
Example:
a = [ [1,8,2], [2,1,3] ]
magic_function(a, 2) == [
Keith Goodman kwgood...@gmail.com writes:
On Wed, Apr 14, 2010 at 8:49 AM, Keith Goodman kwgood...@gmail.com wrote:
On Wed, Apr 14, 2010 at 8:16 AM, Nikolaus Rath nikol...@rath.org wrote:
Hello,
How do I best find out the indices of the largest x elements in an
array?
Example:
a = [
On Wed, Apr 14, 2010 at 12:39 PM, Nikolaus Rath nikol...@rath.org wrote:
Keith Goodman kwgood...@gmail.com writes:
On Wed, Apr 14, 2010 at 8:49 AM, Keith Goodman kwgood...@gmail.com wrote:
On Wed, Apr 14, 2010 at 8:16 AM, Nikolaus Rath nikol...@rath.org wrote:
Hello,
How do I best find out
On Wed, Apr 14, 2010 at 1:56 PM, Keith Goodman kwgood...@gmail.com wrote:
On Wed, Apr 14, 2010 at 12:39 PM, Nikolaus Rath nikol...@rath.org wrote:
Keith Goodman kwgood...@gmail.com writes:
On Wed, Apr 14, 2010 at 8:49 AM, Keith Goodman kwgood...@gmail.com wrote:
On Wed, Apr 14, 2010 at 8:16
Nikolaus Rath Nikolaus at rath.org writes:
Hello,
How do I best find out the indices of the largest x elements in an
array?
Example:
a = [ [1,8,2], [2,1,3] ]
magic_function(a, 2) == [ (0,1), (1,2) ]
Since the largest 2 elements are at positions (0,1) and (1,2).
Best,
On 14 April 2010 16:56, Keith Goodman kwgood...@gmail.com wrote:
On Wed, Apr 14, 2010 at 12:39 PM, Nikolaus Rath nikol...@rath.org wrote:
Keith Goodman kwgood...@gmail.com writes:
On Wed, Apr 14, 2010 at 8:49 AM, Keith Goodman kwgood...@gmail.com wrote:
On Wed, Apr 14, 2010 at 8:16 AM,
On Wed, Apr 14, 2010 at 3:12 PM, Anne Archibald
peridot.face...@gmail.com wrote:
On 14 April 2010 16:56, Keith Goodman kwgood...@gmail.com wrote:
On Wed, Apr 14, 2010 at 12:39 PM, Nikolaus Rath nikol...@rath.org wrote:
Keith Goodman kwgood...@gmail.com writes:
On Wed, Apr 14, 2010 at 8:49 AM,
18 matches
Mail list logo