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

Fix integer-valued array inputs #38

Closed
timholy opened this issue May 29, 2015 · 1 comment · Fixed by #51
Closed

Fix integer-valued array inputs #38

timholy opened this issue May 29, 2015 · 1 comment · Fixed by #51

Comments

@timholy
Copy link
Member

timholy commented May 29, 2015

Currently this is broken (and it may be my fault):

julia> using Interpolations

julia> A = rand(1:20, 3, 3)
3x3 Array{Int64,2}:
 19  20   5
 17  19  14
 19   9   9

julia> itp = interpolate(A, BSpline(Quadratic(Flat)), OnCell);
ERROR: InexactError()
 in invert_column! at /home/tim/.julia/v0.4/Interpolations/src/b-splines/../filter1d.jl:38
 in _A_ldiv_B_md! at /home/tim/.julia/v0.4/Interpolations/src/b-splines/../filter1d.jl:21
 in A_ldiv_B_md! at /home/tim/.julia/v0.4/Interpolations/src/b-splines/../filter1d.jl:14
 in prefilter! at /home/tim/.julia/v0.4/Interpolations/src/b-splines/prefiltering.jl:38
 in prefilter at /home/tim/.julia/v0.4/Interpolations/src/b-splines/prefiltering.jl:26
 in interpolate at /home/tim/.julia/v0.4/Interpolations/src/b-splines/b-splines.jl:36
 in interpolate at /home/tim/.julia/v0.4/Interpolations/src/b-splines/b-splines.jl:39

Fix this once #34#36 and #36#37 get merged.

@timholy
Copy link
Member Author

timholy commented May 29, 2015

We also need to add tests for this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant