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

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

[Octave-bug-tracker] [bug #29942] concatenating with an empty scalar giv


From: Jaroslav Hajek
Subject: [Octave-bug-tracker] [bug #29942] concatenating with an empty scalar gives an error
Date: Fri, 18 Jun 2010 09:53:09 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100317 SUSE/3.5.9-0.1.1 Firefox/3.5.9

Follow-up Comment #22, bug #29942 (project octave):

So, here's the hopefully complete rule for cat/horzcat/vertcat:
two arrays can be concatenated along dimension dim if

1. their dimensions except dim-th are exactly equal, in which case the dim-th
dimensions are summed

OR

2. one of them is a 0x0 array, in which case the other one is used

OR (only applies to horzcat/vertcat)

3. they are both 2D and one of them is a 1x0 or 0x1 array, in which case the
other one is used

EXCEPT

4. if one is 1x0 and the other is 0x1, the result is 0x0.

Can we agree on this?

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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