[SciPy-user] Maximal element of a matrix

Noko Phala nphala at angloresearch.com
Wed Oct 12 03:36:44 CDT 2005

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.


Dr Noko Phala

Process Research

Anglo Research 

PO Box 106 Crown Mines 2025

Republic of South Africa

Tel: +27 (11) 377 4817

e-mail: nphala at angloresearch.com <mailto:nphala at angloresearch.com>  

-----Original Message-----
From: scipy-user-bounces at scipy.net [mailto:scipy-user-bounces at scipy.net]
On Behalf Of Alexander Borghgraef
Sent: Wednesday, October 12, 2005 10:24 AM
To: SciPy Users List
Subject: [SciPy-user] Maximal element of a matrix


Is there a function for determining the largest element of a matrix in
scipy? Max nor maximum
cut it, so I have no idea. What does maximum do anyway? Documentation on
it is rather
minimal, help(scipy.maximum) just returns <ufunc 'maximum'>, not very


Alex Borghgraef 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.scipy.net/pipermail/scipy-user/attachments/20051012/1e4fd462/attachment-0001.htm

More information about the SciPy-user mailing list