Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add helper functions to create uniform NonUniformSampling and NonUniformBSplines #735

Open
tpadioleau opened this issue Jan 2, 2025 · 0 comments

Comments

@tpadioleau
Copy link
Member

tpadioleau commented Jan 2, 2025

Tests on NonUniformBSplines often use uniform break points. We could add a helper to generate the break points to be able to write something like:

struct X {};
using NUBSplinesX = ddc::NonUniformBSplines<X, 3>;
ddc::Coordinate<X> const rmin(0.);
ddc::Coordinate<X> const rmax(1.);
std::size_t const ncells = 10;
ddc::ini_discrete_space<NUBSplinesX>(rmin ,rmax, ncells);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant