Closed
Description
When I run:
using Interpolations
nx = 10
f(x) = sin(2pi/(nx-1) * (x-1))
xcoarse = `1:nx`
ycoarse = f(xcoarse);
xfine = 1:.1:xcoarse[end]
yfine = f(xfine);
yitp = interpolate(ycoarse, BSpline(Linear), OnGrid)
I get:
WARNING: sin{T <: Number}(x::AbstractArray{T}) is deprecated, use sin.(x) instead.
in depwarn(::String, ::Symbol) at ./deprecated.jl:64
in sin(::FloatRange{Float64}) at ./deprecated.jl:50
in f(::UnitRange{Int64}) at ./In[1]:4
in include_string(::String, ::String) at ./loading.jl:471
in execute_request(::ZMQ.Socket, ::IJulia.Msg) at /home/febbo/.julia/v0.6/IJulia/src/execute_request.jl:177
in eventloop(::ZMQ.Socket) at /home/febbo/.julia/v0.6/IJulia/src/eventloop.jl:8
in (::IJulia.##9#15)() at ./task.jl:363
while loading In[1], in expression starting on line 7
LoadError: MethodError: Cannot `convert` an object of type Type{Interpolations.Linear} to an object of type Interpolations.BSpline{D<:Interpolations.Degree}
This may have arisen from a call to the constructor Interpolations.BSpline{D<:Interpolations.Degree}(...),
since type constructors fall back to convert methods.
while loading In[1], in expression starting on line 12
in Interpolations.BSpline{D<:Interpolations.Degree}(::Type{T}) at ./sysimg.jl:53
I am on Ubuntu 16.04 and
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | Type "?help" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.6.0-dev.508 (2016-09-06 20:36 UTC)
_/ |\__'_|_|_|\__'_| | Commit b1f1525 (27 days old master)
|__/ | x86_64-linux-gnu
Should I checkout the master Interpolations PKG?
Metadata
Metadata
Assignees
Labels
No labels