[Numpy-discussion] sum of positive values in an array

SimonPalmer simon.palmer@gmail....
Fri Sep 5 08:46:20 CDT 2008


Hi, probably a basic question, but I'm looking for a neat way to sum
all the positive values in an array of floats.  I'm currently doing it
the hard way, but am hoping there is some cunning and elegant syntax I
can use instead


More information about the Numpy-discussion mailing list