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

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

[Octave-bug-tracker] [bug #38935] abs function modifies int64 argument v


From: anonymous
Subject: [Octave-bug-tracker] [bug #38935] abs function modifies int64 argument vector
Date: Wed, 08 May 2013 13:09:05 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.22 (KHTML, like Gecko) Ubuntu Chromium/25.0.1364.160 Chrome/25.0.1364.160 Safari/537.22

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

                 Summary: abs function modifies int64 argument vector
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Wed 08 May 2013 01:09:03 PM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Jeff Cunningham
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.2.4
        Operating System: GNU/Linux

    _______________________________________________________

Details:

I ran across the following odd behaviour with int64's and the abs function. It
seems to be doing the absolute value in place on the input vector, though it
returns the correct result:


x=int64([-1,-2,-3,-4])
y=abs(x)
x


I assume this is a bug.

Regards,
Jeff Cunningham





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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