[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51249] center() relies on broadcasting
From: |
Guillaume |
Subject: |
[Octave-bug-tracker] [bug #51249] center() relies on broadcasting |
Date: |
Fri, 16 Jun 2017 10:10:27 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0 |
URL:
<http://savannah.gnu.org/bugs/?51249>
Summary: center() relies on broadcasting
Project: GNU Octave
Submitted by: gyom
Submitted on: Fri 16 Jun 2017 02:10:26 PM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Unexpected Error
Status: None
Assigned to: None
Originator Name: Guillaume
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
The fact that center() relies on broadcasting makes it crash when the input is
a sparse or diagonal matrix:
>> center (eye (3))
error: center: operator -: nonconformant arguments (op1 is 3x3, op2 is 1x3)
error: called from
center at line 72 column 12
>> center (sparse (rand (3)))
error: center: operator -: nonconformant arguments (op1 is 3x3, op2 is 1x3)
error: called from
center at line 72 column 12
These limitations of broadcasting are known (see bug #41441 and bug #35787)
but are quite annoying when core functions rely on it - I came across this
while calling var() on a sparse matrix.
If fixing the mentioned bugs are long term projects, would it be ok to modify
center() not to rely on broadcasting and use bsxfun() instead?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51249>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #51249] center() relies on broadcasting,
Guillaume <=