Newer
Older
;; Index lookup and acceleration
;; Liam Healy, Sun Nov 4 2007 - 18:09
;; Time-stamp: <2008-12-26 11:18:49EST lookup.lisp>
(in-package :gsl)
(defmobject acceleration "gsl_interp_accel"
()
"acceleration for interpolation" ; FDL
"Make an accelerator object, which is a
kind of iterator for interpolation lookups. It tracks the state of
lookups, thus allowing for application of various acceleration
strategies.")
(defmfun interpolation-search (x-array x low-index high-index)
"gsl_interp_bsearch"
((x-array :pointer) (x :double) (low-index sizet) (high-index sizet))
:c-return sizet
:documentation ; FDL
"Find the index i of the array x-array such
that x-array[i] <= x < x-array[i+1]. The index is searched for
in the range [low-index, high-index].")
(defmfun accelerated-interpolation-search (x-array x acceleration)
"gsl_interp_accel_find"
((acceleration :pointer) (x-array :pointer) (x :double))