[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #48564] Octave does not accept 1 / ND array
From: |
Philip Nienhuis |
Subject: |
[Octave-bug-tracker] [bug #48564] Octave does not accept 1 / ND array |
Date: |
Tue, 19 Jul 2016 21:03:31 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 |
URL:
<http://savannah.gnu.org/bugs/?48564>
Summary: Octave does not accept 1 / ND array
Project: GNU Octave
Submitted by: philipnienhuis
Submitted on: Tue 19 Jul 2016 11:03:29 PM CEST
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name: philipnienhuis
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
Matlab r2016b prerelease accepts "1 / rand (5, 5, 5);"
I'm unsure about how to interpret this but it seems to work fine in Matlab.
In Octave:
>> 1 / rand (5, 5, 5)
error: flow: operator /: nonconformant arguments (op1 is 1x1, op2 is 5x25)
I don't know if this qualifies as a bug or just a Matlab feature not (yet?)
implemented in Octave; provisionally I assumed the latter.
Octave's error message suggests the second & third dimension of "rand (5, 5,
5)" aren't recognized properly; does that suggest a different bug?
To be sure, Matlab in turn doesn't accept a simple 2D matrix at the RHS:
>> 1 / rand (2, 2)
Error using /
Matrix dimensions must agree
At least Octave and Matlab agree there :-)
I hit this when trying out reducepatch.m (patch #8912) with the examples from
Matlab itself.
(Mageia5 64b, hg id ef91e43f162a "set DLL ....")
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?48564>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #48564] Octave does not accept 1 / ND array,
Philip Nienhuis <=
- [Octave-bug-tracker] [bug #48564] Octave does not accept 1 / ND array, Philip Nienhuis, 2016/07/19
- [Octave-bug-tracker] [bug #48564] Octave does not accept 1 / ND array, John W. Eaton, 2016/07/19
- [Octave-bug-tracker] [bug #48564] Octave does not accept "1 / ND array", "mrdivide (1, ND array)", "mldivide (ND array, 1)", Philip Nienhuis, 2016/07/20
- [Octave-bug-tracker] [bug #48564] Octave does not accept "1 / ND array", "mrdivide (1, ND array)", "mldivide (ND array, 1)", John W. Eaton, 2016/07/20
- [Octave-bug-tracker] [bug #48564] Octave does not accept "1 / ND array", "mrdivide (1, ND array)", "mldivide (ND array, 1)", John W. Eaton, 2016/07/20
- [Octave-bug-tracker] [bug #48564] Octave does not accept "1 / ND array", "mrdivide (1, ND array)", "mldivide (ND array, 1)", Philip Nienhuis, 2016/07/20
- [Octave-bug-tracker] [bug #48564] Octave does not accept "1 / ND array", "mrdivide (1, ND array)", "mldivide (ND array, 1)", Philip Nienhuis, 2016/07/20