[SciPy-user] Maximal element of a matrix

Alexander Borghgraef alexander.borghgraef.rma at gmail.com
Wed Oct 12 04:57:43 EDT 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://mail.scipy.org/pipermail/scipy-user/attachments/20051012/3489af36/attachment.html>


More information about the SciPy-User mailing list