splev Interface

interface
private subroutine splev(t, n, c, k, x, y, m, e, ier)

Arguments

Type IntentOptional AttributesName
real(kind=r8), intent(in), dimension(*):: t

Array, length n, which contains the position of the knots.

integer, intent(in) :: n

Integer, giving the total number of knots of s(x).

real(kind=r8), intent(in), dimension(*):: c

Array, length n, which contains the b-spline coefficients.

integer, intent(in) :: k

Integer, giving the degree of s(x).

real(kind=r8), intent(in), dimension(*):: x

Array, length m, which contains the points where s(x) must be evaluated.

real(kind=r8), intent(out), dimension(*):: y

Array, length m, giving the value of s(x) at the different points.

integer, intent(in) :: m

Integer, giving the number of points where s(x) must be evaluated.

integer, intent(in) :: e

integer, if 0 the spline is extrapolated from the end spans for points not in the support, if 1 the spline evaluates to zero for those points, if 2 ier is set to 1 and the subroutine returns, and if 3 the spline evaluates to the value of the nearest boundary point.

integer, intent(out) :: ier

Error flag:

  • ier = 0: normal return
  • ier = 1: argument out of bounds and e == 2
  • ier =10: invalid input data (see restrictions)

Description

Subroutine splev evaluates in a number of points x(i),i=1,2,...,m a spline s(x) of degree k, given in its b-spline representation.