octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #52437] ismember fails for complex input


From: Paco Leon
Subject: [Octave-bug-tracker] [bug #52437] ismember fails for complex input
Date: Wed, 17 Jul 2019 14:15:08 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0

Follow-up Comment #7, bug #52437 (project octave):

This code

[~,b] = ismember(-1-1j, [-1-1j, -1+3j, -1+1j])

yields 3 instead of 1

This is due to ismember using only the real part for computing the index, and
lookup returning the last index in case of values present more than once

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?52437>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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