Linear Spline¶
Linear spline is a spline whose degree is equal to 1.
It’s described by the following polynomial

where


![c_{2,i} = \left[ x_i, x_{i+1} \right]f,](../../_images/math/b0fc936967689b070804e9af960d3a5821fbcebc.png)

Header File¶
#include<oneapi/mkl/experimental/data_fitting.hpp>
Namespace¶
oneapi::mkl::experimental::data_fitiing
Syntax¶
namespace linear_spline {
struct default_type {};
}
Example¶
To create a linear spline object use the following:
spline<float, linear_spline::default_type> val(
/*SYCL queue object*/q,
/*number of spline functions*/ny
);
Follow the Examples section to see more complicated examples.