[SciPy-user] Maximal element of a matrix

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


On 10/12/05, Noko Phala <nphala at angloresearch.com> wrote:
>
>  If your matrix is a, then "max(a.flat)" should give you the largest
> element, provided you have imported either Numeric or Scipy (from scipy
> import *)
>
> Hope that helps.
>

That looks likes the most elegant solution right now, thanks.

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


More information about the SciPy-user mailing list