[SciPy-user] Maximal element of a matrix
oliphant at ee.byu.edu
Wed Oct 12 03:27:40 CDT 2005
Alexander Borghgraef wrote:
> 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
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.
In scipy this can be called as
More information about the SciPy-user