bugGNU Octave - Bugs: bug #41035, splines: Bad matrix size for...

 
 

bug #41035: splines: Bad matrix size for 'not-a-knot' condition and n==4

Submitter:  Marco Guazzone <sguazt>
Submitted:  Mon 30 Dec 2013 10:50:54 AM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.6.4 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 30 Dec 2013 01:17:20 PM UTC, comment #1: 

Thanks, Marco. I fixed it in the repository.

Nir

Nir Krakauer <nir_krakauer>
Mon 30 Dec 2013 10:50:54 AM UTC, original submission:  

Hello,

There is a bug in splines package (v. 1.2.6) for the case of 'not-a-knot' spline and when the number of nodes (n) is equal to 4.

Test case:

x = [0 1 2 3]
y = [0 0.5 2 1.5]
csape(x,y,'not-a-knot')


This will generate the following error:

error: horizontal dimensions mismatch (2x1 vs 1x2)
error: evaluating argument list element number 1
error: called from:
error: /home/sguazt/octave/splines-1.2.6/csape.m at line 207, column 20

To fix this error, you can simply apply the attached patch.

Best,

-- Marco

Marco Guazzone <sguazt>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #30132:  csape.patch added by sguazt (407B - text/x-patch - Patch generated with 'hg diff')

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by nir_krakauer (Posted a comment)
  • -email is unavailable- added by sguazt (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-12-30 carandraug StatusNone Fixed
        Open/ClosedOpen Closed
    2013-12-30 sguazt Attached File- Added csape.patch, #30132

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code