[Gsll-devel] how to make linear interpolation work?

Mirko Vukovic mirko.vukovic at gmail.com
Tue Mar 2 15:01:15 UTC 2010


The following snippet:

(let ((v1 #m(1d0 2d0 3d0))
       (v2 #m(3d0 2d0 1d0)))
       (let ((interpolation (make-interpolation +linear-interpolation+
                        v1 v2))
         (accel (make-acceleration)))
     (evaluate interpolation 2d0 :ya v2 :x1 v1 :acceleration accel)))

throws an error on SBCL (1.0.34):

There is no applicable method for the generic function
  #<STANDARD-GENERIC-FUNCTION C-ARRAY:ORIGINAL-ARRAY (1)>
when called with arguments
  (NIL).
   [Condition of type SIMPLE-ERROR]

spline interpolation works.  So, what am I missing?

Mirko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/gsll-devel/attachments/20100302/80a664ba/attachment.html>


More information about the gsll-devel mailing list