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

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

[Octave-bug-tracker] [bug #32683] incorrect ndarray concatenation


From: Alois Schlögl
Subject: [Octave-bug-tracker] [bug #32683] incorrect ndarray concatenation
Date: Sat, 16 Jul 2011 20:55:08 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110628 Ubuntu/10.04 (lucid) Firefox/3.6.18

Follow-up Comment #3, bug #32683 (project octave):

The attached patch includes a test for this confirmed bug.
I suggest to include this into the repository.


BTW: I noticed that each input array is written at the beginning of the output
array. It seems that the offset for writing the 2nd and following arrays is
incorrectly reset to 0 or not correctly updated, 


[ zeros(4,2,2); 
  ones(3,2,2) ; 
  2*ones(2,2,2) ; 
  3*ones(1,2,2) ;  
]

ans(:,:,1) =

    3.0000e+00    3.0000e+00
    2.0000e+00    2.0000e+00
    1.0000e+00    1.0000e+00
    0.0000e+00    0.0000e+00
   2.3715e-322    0.0000e+00
   2.3715e-322    0.0000e+00
   1.8854e-316   1.8789e-316
   6.9169e-323   1.8854e-316
   2.1220e-314   1.8854e-316
   1.7468e+243   4.7924e-322

ans(:,:,2) =

    3.0000e+00    3.0000e+00
    2.0000e+00    2.0000e+00
    1.0000e+00    1.0000e+00
    0.0000e+00    0.0000e+00
   2.3715e-322    0.0000e+00
   2.3715e-322    0.0000e+00
   1.8029e-316   1.8854e-316
   7.4110e-323   1.8854e-316
   2.1220e-314   1.8854e-316
   8.3834e+242   4.7924e-322


P.S,; This bug occurs not only on MacOS and dev-version but also in Octave
3.4.0., 3.4.1 and 3.4.2 on Linux.  


(file #23664)
    _______________________________________________________

Additional Item Attachment:

File name: patch_check_vertcat.diff       Size:0 KB


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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