[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51634] Calling repmat on struct array with ex
From: |
Piotr Held |
Subject: |
[Octave-bug-tracker] [bug #51634] Calling repmat on struct array with explicit trailing singleton dimensions fails |
Date: |
Wed, 2 Aug 2017 17:16:46 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36 |
Follow-up Comment #2, bug #51634 (project octave):
This issue is actually connected to reshape, I apologize for not being more
precise earlier.
The following code fails:
a = struct ('f', 1);
a = repmat (a, 3, 1);
reshape (a, 1, 3, 1, 1);
I am attaching this code in 'repmat_struct.tst' as a test.
The problem is with octave_map::reshape, that didn't chop trailing singletons
for the main struct-array dimension.
The patch changeset also includes a test that is placed directly below
octave_map::reshape and did not pass prior to patch and does pass after patch.
(file #41397)
_______________________________________________________
Additional Item Attachment:
File name: repmat_struct.tst Size:0 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51634>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/