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

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

[Octave-bug-tracker] [bug #29465] cat(3, [], x) behaves strangely


From: anonymous
Subject: [Octave-bug-tracker] [bug #29465] cat(3, [], x) behaves strangely
Date: Wed, 07 Apr 2010 22:36:14 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.3) Gecko/20100404 Ubuntu/10.04 (lucid) Firefox/3.6.3

URL:
  <http://savannah.gnu.org/bugs/?29465>

                 Summary: cat(3, [], x) behaves strangely
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Wed 07 Apr 2010 10:36:13 PM UTC
                Category: None
                Severity: 3 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Heikki Kallasjoki
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.3.51
        Operating System: GNU/Linux

    _______________________________________________________

Details:

On at least octave 3.3.51, 3.2.3 and 3.0.5 (but not 3.0.1), the built-in
"cat" function behaves strangely when the first argument is the empty matrix
[], and dimension is larger than 2.  Examples below.

3.3.51:


octave:2> version
ans = 3.3.51
octave:3> cat(3, [], [1 2; 3 4])
ans =
   6.9320e-310   2.1220e-314
   2.0830e-316   1.2207e-306

octave:4> cat(3, [], [1 2; 3 4])
ans =
   6.9320e-310   1.9998e-316
   2.2249e-316   4.9407e-324


(Note that the output is even not always the same.)

3.2.3:


octave:2> version
ans = 3.2.3
octave:3> cat(3, [], [0.1 0.2 0.3; 0.4 0.5 0.6])
ans =
    0.0000e+00   2.1220e-314   6.0600e+233
   1.1364e-322   4.7413e+170   1.3544e-306

octave:4> cat(3, [0.1 0.2 0.3; 0.4 0.5 0.6], [])
ans =

   0.10000   0.20000   0.30000
   0.40000   0.50000   0.60000


(If the order of the arguments is reversed, the result is as expected.)

On 3.0.5:


octave:2> version
ans = 3.0.5
octave:3> cat(3, [], [1 2; 3 4])
ans =
    0.0000e+00    0.0000e+00
   1.2484e-312   4.9407e-324


However, on 3.0.1:


octave:1> version
ans = 3.0.1
octave:2> cat(3, [], [1 2; 3 4])
ans =
   1   2
   3   4


(No problems there.)

All the examples were from various x86-64 GNU/Linux systems.  Apologies if
this has been reported earlier or fixed in the hg tip; a quick search on "cat"
in the bug tracker found no hits, and I don't have the proper tools installed
to build the latest development code.




    _______________________________________________________

Reply to this item at:

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

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





reply via email to

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