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

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

[Octave-bug-tracker] [bug #35946] diag([a], b, c) fills matrix with stra


From: anonymous
Subject: [Octave-bug-tracker] [bug #35946] diag([a], b, c) fills matrix with strange values
Date: Thu, 22 Mar 2012 14:23:11 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:9.0.1) Gecko/20100101 Firefox/9.0.1

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

                 Summary: diag([a],b,c) fills matrix with strange values
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Thu 22 Mar 2012 02:23:10 PM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.0
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Example:

User input:
> diag([0],6,3)

Actual result:
    0.0000e+00   5.5502e-268   5.5520e-268
   5.5442e-268   5.5505e-268   5.5523e-268
   5.5425e-268   5.5508e-268   5.5526e-268
   5.5444e-268   5.5511e-268   5.5529e-268
   5.5428e-268   5.5514e-268   5.5532e-268
   5.5499e-268   5.5517e-268   3.6144e-313

Expected: zero 6x3 matrix

This behaviour seems to be version/build/system dependent. Sometimes the
result varies with time.

To reproduce, please also try varying b and c, like that: diag(3,3,3),
diag(4,4,4), diag(6,6,6), diag(9,9,9).

Tested on Octave 3.6.0 @x86 Intel Core2 Quad and Octave 3.4.3 @x86_64 Intel
Xeon.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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