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

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

[Octave-bug-tracker] [bug #41633] postpad and prepad fail when padding s


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #41633] postpad and prepad fail when padding singleton dimensions
Date: Fri, 21 Feb 2014 05:15:12 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.123 Safari/537.36

Update of bug #41633 (project octave):

                Category:                    None => Octave Function        
                  Status:                    None => Patch Submitted        
                 Summary: postpad fails when padding singleton dimensions =>
postpad and prepad fail when padding singleton dimensions

    _______________________________________________________

Follow-up Comment #1:

I've got a patch for this, attached. As far as I can tell this doesn't break
existing functionality at all, only allows arguments that would have been
errors previously. So I think this could go on the gui-release branch for
4.0.

Also, workaround is to use cat directly which does allow dimensions larger
than current. For your example,


a = rand (4, 4);
cat (3, a, zeros ([size(a) 2]))


gives the padding you're looking for.

(file #30628)
    _______________________________________________________

Additional Item Attachment:

File name: bug41633.diff                  Size:2 KB


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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