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

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

[Octave-bug-tracker] [bug #62485] sort does not sort


From: anonymous
Subject: [Octave-bug-tracker] [bug #62485] sort does not sort
Date: Tue, 17 May 2022 23:07:56 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?62485>

                 Summary: sort does not sort
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Wed 18 May 2022 03:07:54 AM UTC
                Category: Libraries
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 7.1.0
         Discussion Lock: Any
        Operating System: Any

    _______________________________________________________

Details:

If a < b < c, then a+a < a+b < a+c, a+b < 2b < b+c, and a+c < b+c < 2c. But
that is violated like this. 



a = sort ([1 -1 0 i -i])
c = a.' + a
sort (c,1) == c
sort (c,2) == c


The two results from the last two lines should be all ones. When a is all real
numbers it is all ones. For complex no.





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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