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

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

[Octave-bug-tracker] [bug #52953] reshaping "complex(0, 0)" should not m


From: Colin Macdonald
Subject: [Octave-bug-tracker] [bug #52953] reshaping "complex(0, 0)" should not make it real
Date: Mon, 22 Jan 2018 14:34:56 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0

URL:
  <http://savannah.gnu.org/bugs/?52953>

                 Summary: reshaping "complex(0,0)" should not make it real
                 Project: GNU Octave
            Submitted by: cbm
            Submitted on: Mon 22 Jan 2018 07:34:55 PM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

1.  I would not expect reshape and "(:)" to change the type of my data.

2.  But currently "complex(0,0)" and "complex(-0, -0)" become real when
reshaped.

3.  Many functions (e.g., special functions) reshape their input before
processing.  These functions are one of major reasons we have signed zero.  So
if their result depends on signed zero, they cannot get it right.

4.  This is also a Matlab compatibility issue (not that I recommend blindly
emulating Matlab's treatment of signed zeros).  I have confirmed that Matlab
R2014a does not change the type on reshape.

5.  I will attach some BIST once I have the bug number.





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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