[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #47173] mtimes allows arguments with >= 3 dime
From: |
Nicholas Jankowski |
Subject: |
[Octave-bug-tracker] [bug #47173] mtimes allows arguments with >= 3 dimensions |
Date: |
Tue, 5 Sep 2017 11:55:05 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0 |
Follow-up Comment #6, bug #47173 (project octave):
Appears to still be relevant.
Matlab 2017a:
>> ones(2,3)*ones(3,1)
ans =
3
3
>> ones(2,3)*ones(3,1,2)
Error using *
Arguments must be 2-D, or at least one argument must be scalar. Use TIMES (.*)
for elementwise
multiplication.
>> ones(2,3)*ones(3,1,2,2)
Error using *
Arguments must be 2-D, or at least one argument must be scalar. Use TIMES (.*)
for elementwise
multiplication.
>> ones(2,3)*ones(3,1,2,2,2)
Error using *
Arguments must be 2-D, or at least one argument must be scalar. Use TIMES (.*)
for elementwise
multiplication.
Octave 4.2.1:
>> ones(2,3)*ones(3,1)
ans =
3
3
>> ones(2,3)*ones(3,1,2)
ans =
3 3
3 3
>> ones(2,3)*ones(3,1,2,2)
ans =
3 3 3 3
3 3 3 3
>> ones(2,3)*ones(3,1,2,2,2)
ans =
3 3 3 3 3 3 3 3
3 3 3 3 3 3 3 3
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?47173>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/