[Numpy-discussion] largest matrix element

Charles G Waldman cgw at alum.mit.edu
Tue Jul 24 14:18:28 CDT 2001


nils.wagner at freenet.de writes:
 > Given a complex Matrix A(m,n)
 > How can I get the absolute value of the largest matrix element
 > very efficiently ?

How about

  sqrt(max((asarray(A)*conjugate(asarray(A))).real))

?







More information about the Numpy-discussion mailing list