Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
7261 Discussions

Multiple y functions as spline parameters

kdev1
New User
267 Views

Hi, 

Is it possible to have multiple y- functions as parameters:

df::spline<double, df::linear_spline::default_type> spl(q);
    spl.set_partitions(partitions.data(), nx)
       .set_coefficients(coeffs.data())
       .set_function_values(functions.data());

eg. can 'functions' be type std::vector<std::vector<double>> or in some other way to compute multiple y's

and if that is not possible how can these splines be computed in parallel? 

thank you.

0 Kudos
2 Replies
Andrey_F_Intel
Employee
194 Views

Hi @kdev1 ,

Thank you for your question.

It's possible. There is the function named set_function_values. It accepts FpType* as input. Follow the documentation link for more information: https://www.intel.com/content/www/us/en/docs/onemkl/developer-reference-dpcpp/2025-2/splines.html .

Let us know if you have more questions

0 Kudos
Andrey_F_Intel
Employee
193 Views

functions can be std::vector<double> with the size of (nx * ny).

A complete example of using multiple y-functions can be found as part of the oneMKL package.

 

0 Kudos
Reply