[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #53603] 'find' incompatible with ML

From: Mike Miller
Subject: [Octave-bug-tracker] [bug #53603] 'find' incompatible with ML
Date: Tue, 10 Apr 2018 12:16:21 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0

Follow-up Comment #4, bug #53603 (project octave):

I think jwe might be looking into this.

I only got as far as seeing that this bug falls in the special case for
logical matrices commented in find.cc:

      else if (nargout <= 1 && n_to_find == -1 && direction == 1)
          // This case is equivalent to extracting indices from a logical
          // matrix.  Try to reuse the possibly cached index vector.

          // No need to catch index_exception, since arg is bool.
          // Out-of-range errors have already set pos, and will be caught
          retval(0) = arg.index_vector ().unmask ();

So the change is not in find.cc but maybe in octave_value::index_vector or in
the idx_vector class.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]