CachedInterpolations.jl

CachedInterpolations.jl exports interpolation types in the style of DataInterpolations.jl:

  • CLinearInterpolation, regular old linear interpolation;
  • CSmoothedLinearInterpolation, a type of linear interpolation with well-behaved smoothed corners;
  • CSmoothedLinearInterpolationIntInv, the inverse of the antiderivative of a CSmoothedLinearInterpolation if it exists;
  • CLinearInterpolationInvInv, the inverse of the antiderivative of a (C)LinearInterpolation if it exists.

These interpolations make as much use as possible of cached data computed at initialization, for a speed against memory usage tradeoff.

Installation

Simply run the code below from the package manager.

pkg> add CachedInterpolations

Supported features

Not all features for interpolation objects from DataInterpolations.jl are currently supported.

EvaluationDerivativeIntegration
CLinearInterpolationSupportedNot supportedSupported
CSmoothedLinearInterpolationSupportedsupportedSupported
CSmoothedLinearInterpolationIntInvSupportedsupportedNot supported
CLinearInterpolationIntInvSupportedsupportedNot supported

If you wish to use one of the currently unsupported features, please write an issue. Note that differentiation can also be achieved with many of the automatic differentiation packages in the Julia ecosystem.

The logo is inspired by the julia logo graphics.