|
From: | Wim van der Meer |
Subject: | [Octave-bug-tracker] [bug #29685] Using abs() on a int16 or int8 vector changes the vector |
Date: | Tue, 27 Apr 2010 02:39:49 +0000 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100402 Ubuntu/9.10 (karmic) Firefox/3.5.9 |
URL: <http://savannah.gnu.org/bugs/?29685> Summary: Using abs() on a int16 or int8 vector changes the vector Project: GNU Octave Submitted by: wim_octave Submitted on: Tue 27 Apr 2010 02:39:48 AM GMT Category: Interpreter Severity: 3 - Normal Item Group: Incorrect Result Status: None Assigned to: None Originator Name: Wim Originator Email: Open/Closed: Open Discussion Lock: Any Release: 3.2.2 Operating System: GNU/Linux _______________________________________________________ Details: octave:53> a = int8([-6 -3]) a = -6 -3 octave:54> abs(a) ans = 6 3 octave:55> a a = 6 3 I would expect the abs operator to not change the original data! _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?29685> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |