[Scipy-tickets] [SciPy] #1446: interpolate.splint should accept arrays and use broadcasting

SciPy Trac scipy-tickets@scipy....
Wed May 25 14:10:05 CDT 2011


#1446: interpolate.splint should accept arrays and use broadcasting
-------------------------------+--------------------------------------------
 Reporter:  warren.weckesser   |       Owner:  somebody   
     Type:  enhancement        |      Status:  new        
 Priority:  normal             |   Milestone:  Unscheduled
Component:  scipy.interpolate  |     Version:  devel      
 Keywords:  splint             |  
-------------------------------+--------------------------------------------
 The function scipy.interpolate.splint should handle array_like arguments
 for the arguments a and b, with broadcasting.
 For example, if we have
 {{{
 >>> splint(0, 1, tck)
 0.5
 >>> splint(0.5, 1, tck)
 0.375
 >>> splint(0.5, 2.5, tck)
 0.875
 >>> splint(0, 2.5, tck)
 1.0
 }}}
 Then the following should work as shown:
 {{{
 >>> splint([0, 0.5], 1, tck)
 array([0.5 , 0.375])
 >>> splint([0, 0.5], [1.0, 2.5], tck)
 array([0.5 , 0.875])
 >>> splint([[0],[0.5]], [1.0, 2.5], tck)
 array([[0.5   , 1.0  ],
        [0.375 , 0.875]])
 }}}

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1446>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list