[Top][All Lists]

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

[Octave-bug-tracker] [bug #35150] spdiags() 4-argument incompatibility

From: anonymous
Subject: [Octave-bug-tracker] [bug #35150] spdiags() 4-argument incompatibility
Date: Wed, 21 Dec 2011 23:16:21 +0000
User-agent: Mozilla/5.0 (Ubuntu; X11; Linux i686; rv:8.0) Gecko/20100101 Firefox/8.0


                 Summary: spdiags() 4-argument incompatibility
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Wed 21 Dec 2011 23:16:19 UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: J.J. Green
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux



For some small (seemingly silly) cases, Octave's spdiags() fails

octave:16> spdiags([0.5 -1 0.5], 0:2, 1, 1)
error: spdiags: A(I): index out of bounds; value 7 out of bound 3
error: called from:
error:   /usr/local/share/octave/3.5.90+/m/sparse/spdiags.m at line 85, column

while Matlab's suceeds

>> spdiags([0.5 -1 0.5], 0:2, 1, 1)

ans =

   (1,1)       0.5000

In fact these cases are not as silly as they first appear, they are used as
the starting point for adaptive refinement schemes.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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