[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #40374] incorrect broadcasting with non diagon
From: |
jose |
Subject: |
[Octave-bug-tracker] [bug #40374] incorrect broadcasting with non diagonal matrices |
Date: |
Fri, 25 Oct 2013 17:10:22 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/28.0.1500.71 Chrome/28.0.1500.71 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?40374>
Summary: incorrect broadcasting with non diagonal matrices
Project: GNU Octave
Submitted by: josombio
Submitted on: Fri 25 Oct 2013 05:10:21 PM GMT
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.6.4
Operating System: GNU/Linux
_______________________________________________________
Details:
I have read several bug reports about cases in which broadcasting does not
work properly, such as #39462 and #38466. The first one is about diagonal
matrices, and is closed. This report might be related to the second one.
In octave 3.6.4 there are cases in which broadcasting does not work well
involving non diagonal matrices. Just in case this is not known/solved, here I
point it out.
Examples of diagonal matrices:
--------------
octave:6> clear
octave:7>
octave:8> d=[1 2 3];
octave:9> d.+=ones(3)
error: +=: nonconformant arguments (op1 is 1x3, op2 is 3x3)
octave:9> d.-=ones(3)
error: -=: nonconformant arguments (op1 is 1x3, op2 is 3x3)
octave:9> d./=ones(3)
error: ./=: nonconformant arguments (op1 is 1x3, op2 is 3x3)
octave:9> d.*=ones(3)
error: .*=: nonconformant arguments (op1 is 1x3, op2 is 3x3)
octave:9> d.*=rand(3)
error: .*=: nonconformant arguments (op1 is 1x3, op2 is 3x3)
octave:9> d.*=eye(3); %this works
------------
An now non diagonal
------------
octave:1> d=[1 2 3];
octave:2> d.*=rand(3)
error: .*=: nonconformant arguments (op1 is 1x3, op2 is 3x3)
octave:2> d.+=rand(3)
error: +=: nonconformant arguments (op1 is 1x3, op2 is 3x3)
octave:2> d.-=rand(3)
error: -=: nonconformant arguments (op1 is 1x3, op2 is 3x3)
octave:2> d./=rand(3)
error: ./=: nonconformant arguments (op1 is 1x3, op2 is 3x3)
octave:2> d./=rand(3)
------------
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?40374>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #40374] incorrect broadcasting with non diagonal matrices,
jose <=