|
From: | Markus Mützel |
Subject: | [Octave-bug-tracker] [bug #60265] Negative zeros in matrices - inconsistency |
Date: | Sun, 21 Mar 2021 08:14:21 -0400 (EDT) |
User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36 Edg/89.0.774.57 |
Update of bug #60265 (project octave): Status: None => Need Info _______________________________________________________ Follow-up Comment #1: Octave has a dedicated type for diagonal matrices. Those are similar to sparse matrices but only store the elements on the diagonal. `eye` returns a diagonal matrix. The unary `-` operator on a diagonal matrix returns a diagonal matrix. On Ubuntu 20.10 with Octave 6.2.1 (hg id 75ba68c686ab), I see the following: >> A = eye (2) A = Diagonal Matrix 1 0 0 1 >> B = [1 0; 0 1] B = 1 0 0 1 >> 1 ./ (-A) ans = -1 Inf Inf -1 >> 1 ./ (-B) ans = -1 -Inf -Inf -1 Afaict, these are the expected results. Could you please elaborate what you think is the issue and how that relates to sympy? _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?60265> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |