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

Can not use different number of nodes for BicubicSplines #3

Open
Jean1995 opened this issue Feb 12, 2021 · 0 comments
Open

Can not use different number of nodes for BicubicSplines #3

Jean1995 opened this issue Feb 12, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@Jean1995
Copy link
Member

Jean1995 commented Feb 12, 2021

It looks like the program crashes if I use different nodes for different dimensions.

For example, this code works:

auto def = cubic_splines::BicubicSplines<double>::Definition(); def.f = func; def.axis[0] = std::make_unique<cubic_splines::ExpAxis<double>>(1., 1e7, (size_t)10); def.axis[1] = std::make_unique<cubic_splines::LinAxis<double>>(0., 1, (size_t)10);

while this one crashes
auto def = cubic_splines::BicubicSplines<double>::Definition(); def.f = func; def.axis[0] = std::make_unique<cubic_splines::ExpAxis<double>>(1., 1e7, (size_t)10); def.axis[1] = std::make_unique<cubic_splines::LinAxis<double>>(0., 1, (size_t)20);

with the error message

Assertion failed: (row >= 0 && row < rows() && col >= 0 && col < cols()), function operator(), file /usr/local/include/eigen3/Eigen/src/Core/DenseCoeffsBase.h, line 367.

I've been building CubicInterpolation in DEBUG mode.

@Jean1995 Jean1995 added the bug Something isn't working label Feb 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant