|
From: | Hartmut |
Subject: | [Octave-bug-tracker] [bug #59899] colon operator returns incompatible class for integer inputs |
Date: | Sun, 17 Jan 2021 14:31:09 -0500 (EST) |
User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0 |
URL: <https://savannah.gnu.org/bugs/?59899> Summary: colon operator returns incompatible class for integer inputs Project: GNU Octave Submitted by: hardy Submitted on: Sun 17 Jan 2021 07:31:07 PM UTC Category: Octave Function Severity: 3 - Normal Priority: 5 - Normal Item Group: Matlab Compatibility Status: None Assigned to: None Originator Name: Originator Email: Open/Closed: Open Release: 6.1.0 Discussion Lock: Any Operating System: Any _______________________________________________________ Details: Here is a small demo code to show what I mean: vec = uint8(1) : uint8(5) class(vec) In Matlab the result is 'uint8', but in current Octave I get the result 'double'. (The behavior for uint16 and int16 is the same as for uint8 in Octave.) The current Octave result is very unexpected to me (in fact it took me several years to figure this out in bug #55059) and it is incompatible to Matlab. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?59899> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |