[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54241] Lookup documentation
From: |
Dan Sebald |
Subject: |
[Octave-bug-tracker] [bug #54241] Lookup documentation |
Date: |
Tue, 3 Jul 2018 17:08:01 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
Follow-up Comment #8, bug #54241 (project octave):
Here's one case where lookup is used with non-increasing table:
@linux ~/octave/octave/octave $ grep "lookup" */*/*.m
[snip]
scripts/statistics/discrete_inv.m: inv(k) = v(length (p) - lookup (sort (p,
"descend"), x(k)) + 1);
[snip]
I would say, looking at all the uses of lookup, there is a lot of table
truncating and post-call "+1" going on. So, one wonders if either the calls
to lookup() could make use of the "lr" option, or maybe the location that is
calling lookup() could use find() or ismember() creatively to achieve the same
effect.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?54241>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #54241] Lookup documentation, Michael Leitner, 2018/07/03
- [Octave-bug-tracker] [bug #54241] Lookup documentation, Mike Miller, 2018/07/03
- [Octave-bug-tracker] [bug #54241] Lookup documentation, Dan Sebald, 2018/07/03
- [Octave-bug-tracker] [bug #54241] Lookup documentation, Dan Sebald, 2018/07/03
- [Octave-bug-tracker] [bug #54241] Lookup documentation, Mike Miller, 2018/07/03
- [Octave-bug-tracker] [bug #54241] Lookup documentation, Dan Sebald, 2018/07/03
- [Octave-bug-tracker] [bug #54241] Lookup documentation, Dan Sebald, 2018/07/03
- [Octave-bug-tracker] [bug #54241] Lookup documentation, Mike Miller, 2018/07/03
- [Octave-bug-tracker] [bug #54241] Lookup documentation,
Dan Sebald <=
- [Octave-bug-tracker] [bug #54241] Lookup documentation, Michael Leitner, 2018/07/04
- [Octave-bug-tracker] [bug #54241] Lookup documentation, Dan Sebald, 2018/07/04
- [Octave-bug-tracker] [bug #54241] Lookup documentation, Michael Leitner, 2018/07/04
- [Octave-bug-tracker] [bug #54241] Lookup documentation, Dan Sebald, 2018/07/04