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

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

[Octave-bug-tracker] [bug #36606] union doesn't work.


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #36606] union doesn't work.
Date: Thu, 07 Jun 2012 12:20:34 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20100101 Firefox/10.0.4 Iceweasel/10.0.4

Update of bug #36606 (project octave):

              Item Group:        Incorrect Result => Documentation          
                  Status:                    None => Fixed                  
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #1:

In 3.2.4, The doc string for union says


 -- Function File: [C, IA, IB] = union (A, B)
     Return index vectors IA and IB such that `a == c(ia)' and `b ==
     c(ib)'.


so you are correct that the result you see does not match the documentation. 
However, the function is correct (and compatible with Matlab) and the
documentation is wrong.  In the current version of Octave (3.6.x): the
documentation says


 -- Function File: [C, IA, IB] = union (A, B)
     Return index vectors IA and IB such that `a(ia)' and `b(ib)' are
     disjoint sets whose union is C.


which I think is correct.  So I'm closing this report and marking it as a
documentation bug that has been fixed.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?36606>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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