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

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

[Octave-bug-tracker] [bug #43511] null array retained when cellstr is us


From: Rik
Subject: [Octave-bug-tracker] [bug #43511] null array retained when cellstr is used to build vector through concatenation
Date: Mon, 15 Feb 2016 18:47:56 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Update of bug #43511 (project octave):

                  Status:         Patch Submitted => Fixed                  
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #11:

I committed the patch here.

I changed 


if (p->dims ().zero_by_zero ())


to 


if (p->is_empty ())


because it seems that any empty matrix should be suppressed and that


a = 'example';
b = zeros (2,0);
b = [b, cellstr(a)]
=>
b => 'example';


It also created a failing test in copyobj.m.  That seems to have been
potentially unclear coding that was vulnerable to the change in definition.  I
fixed that too.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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