[SciPy-user] Maximal element of a matrix

Alexander Borghgraef alexander.borghgraef.rma at gmail.com
Wed Oct 12 03:56:48 CDT 2005


On 10/12/05, Travis Oliphant <oliphant at ee.byu.edu> wrote:
>
>
> Yeah. You have to understand ufuncs for the maximum function to make
> sense. It takes the maximum element-by-element of two arrays.
>
> But maximum.reduce(ravel(a)) does what you want.


Ok, it does.

> In scipy this can be called as
>
> a.max()
>

The new scipy 0.4 beta? Because when I run this in scipy 0.3.2, I get an
attribute error.

--
Alex Borghgraef
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.scipy.net/pipermail/scipy-user/attachments/20051012/4d4e8522/attachment.htm


More information about the SciPy-user mailing list