max_abs, min_abs, max_index, min_index
Dave <[email protected]>
| Newsgroups | gmane.comp.lib.mtl.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I sent this message 4 months ago, and received a message saying that the
moderator would either reply to me, or post the message. The message
never got posted...and the moderator never replied...so here it is again:
There is an inconsistency in the min/max functions that I think should
be corrected.
From the descriptions (which is confirmed by looking at the source
code), the min/max
functions do the following:
1. max_index: i <-
index of max(|x(i)|)
2. max_abs_index: i <- index of max(|x(i)|)
3. min_index: i
<- index of min(x(i))
4. min_abs_index: i <- index of min(|x(i)|)
Obviously, max_index and max_abs_index do the same thing. It would make
more sense
if max_index calculated:
index of max(x(i))
instead of index of max(|x(i)|). The fix should be very
straightforward. If you want me to
send a patch, tell me.
Thanks,
Dave.
_______________________________________________
This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/