octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #46385] Can't Repmat Structure Arrays


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #46385] Can't Repmat Structure Arrays
Date: Fri, 1 Jul 2016 15:00:02 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0

Follow-up Comment #6, bug #46385 (project octave):

looking through repmat, there are places where it makes decisions based on the
result of size(A) or numel(A).  For the example below octave gives
numel(mtest) = 2, while Matlab gives numel(mtest) = 4. 

if the patch using repelem works, I think it's just because it avoids those
calls. When we rewrote repelem, I didn't do any tests on structs (or cells for
that manner) so I don't at the moment know how it's handling them differently.
 But while this would make repmat work, there still appears to be something
broken in how octave determines the size of struct arrays. 

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46385>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]