From: Scott R. <ra...@cf...> - 2001-07-24 19:24:55
|
Charles G Waldman wrote: > > nil...@fr... 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)) I if you want the global maximum you need a ravel in there: sqrt(max(ravel((asarray(a)*conjugate(asarray(a))).real))) Scott -- Scott M. Ransom Address: Harvard-Smithsonian CfA Phone: (617) 496-7908 60 Garden St. MS 10 email: ra...@cf... Cambridge, MA 02138 GPG Fingerprint: 06A9 9553 78BE 16DB 407B FFCA 9BFA B6FF FFD3 2989 |