comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: how to get the index of the maximum element in each row for a 2D matrix efficiently
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: how to get the index of the maximum element in each row for a 2D matrix efficiently [message #36284 is a reply to message #36279] Sat, 30 August 2003 13:33 Go to previous messageGo to previous message
henrygroe is currently offline  henrygroe
Messages: 30
Registered: August 2003
Member
>
> Starting with v5.6, MAX will do this for you with its own DIMENSION
> keyword. Remember that in IDL dimensions start, perversely, with 1,
> as opposed to everything else, which is 0 based. As of now we can
> thread the following:
>
> TOTAL
> PRODUCT
> MIN
> MAX
> MEDIAN
>
> The only remaining operators I wish could be dimensionally threaded in
> this way are AND, OR, and especially the new && and ||
> short-circuiting ops.
>
> JD

Standard deviation or variance is also a useful function; e.g. if you
have a stack of images and want the stdev in each pixel. (I wrote a
bunch of call_external fortran routines to do all these before v5.6;
I think stdev_in_1d is the only one that has not been made redundant.)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: mpeg resolution in MS-Windows
Next Topic: Re: iTools questions

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 16:52:31 PDT 2025

Total time taken to generate the page: 0.00373 seconds