Skip to content
Joris Gillis edited this page Apr 4, 2023 · 2 revisions

Standard documentation for interp1d:

 Performs 1d linear interpolation.

::

 interp1d([float] x, DM v, [float] xq, str mode, bool equidistant) -> DM
 interp1d([float] x, SX v, [float] xq, str mode, bool equidistant) -> SX
 interp1d([float] x, MX v, [float] xq, str mode, bool equidistant) -> MX

The data-points to be interpolated are given as (x[i], v[i]). xq[j] is used as interplating value

Extra doc: https://github.com/casadi/casadi/wiki/L_1bh

Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/generic_matrix.hpp#L311

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/generic_matrix.hpp#L311-L314

Extra documentation

To edit, see writing tips.

Clone this wiki locally