|
From: | Rik |
Subject: | [Octave-bug-tracker] [bug #51682] No error issued for left division of scalar_double_type \ integer_matrix_type, also wrong answer |
Date: | Mon, 7 Aug 2017 11:26:38 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0 |
URL: <http://savannah.gnu.org/bugs/?51682> Summary: No error issued for left division of scalar_double_type \ integer_matrix_type, also wrong answer Project: GNU Octave Submitted by: rik5 Submitted on: Mon 07 Aug 2017 08:26:37 AM PDT Category: Interpreter Severity: 4 - Important Priority: 5 - Normal Item Group: Incorrect Result Status: Confirmed Assigned to: None Originator Name: Originator Email: Open/Closed: Open Discussion Lock: Any Release: dev Operating System: Any _______________________________________________________ Details: Left division incorrectly returns a scalar type, rather than a matrix type, for scalar_double \ integer_matrix. Example code: octave:1> x = int8 ([1 0; 1 1]) x = 1 0 1 1 octave:2> 2 \ x ans = 0.50000 octave:3> 2 \ double (x) ans = 0.50000 0.00000 0.50000 0.50000 Since left-division isn't implemented for integer data types (see bug #51650) this case should also just throw an error about an unimplemented operator rather than calculating a value which is misleading. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?51682> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |