- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page