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


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

Submitted by:  Marco Guazzone <sguazt>
Submitted on:  Mon 30 Dec 2013 10:50:54 AM UTC  
Category: Octave Forge PackageSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 3.6.4Operating System: GNU/Linux

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


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

Thanks, Marco. I fixed it in the repository.


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


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:

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.


-- Marco

Marco Guazzone <sguazt>


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

Attach File(s):

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
  • -unavailable- added by nir_krakauer (Posted a comment)
  • -unavailable- added by sguazt (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 30 Dec 2013 07:41:11 PM UTCcarandraugStatusNone=>Fixed
    Mon 30 Dec 2013 10:50:54 AM UTCsguaztAttached File-=>Added csape.patch, #30132

    Back to the top

    Powered by Savane 3.1-cleanup