I have tried to use the ScatteredInterpolation package.
When i duplicate the first simple example from the documentation Home · ScatteredInterpolation.jl
using ScatteredInterpolation
samples = [0.0; 0.5; 0.5; 0.5; 1.0];
points = [0.0 0.0; 0.0 1.0; 1.0 0.0; 0.5 0.5; 1.0 1.0];
itp = interpolate(Multiquadratic(), points, samples);
I get
DimensionMismatch: arguments must have the same number of rows
Stacktrace:
[1] \(F::LinearAlgebra.LU{Float64, Matrix{Float64}, Vector{Int64}}, B::Vector{Float64})
@ LinearAlgebra ~/bin/julia-1.8.4/share/julia/stdlib/v1.8/LinearAlgebra/src/LinearAlgebra.jl:472
[2] \(A::Matrix{Float64}, B::Vector{Float64})
@ LinearAlgebra ~/bin/julia-1.8.4/share/julia/stdlib/v1.8/LinearAlgebra/src/generic.jl:1110
[3] solveForWeights
@ ~/.julia/packages/ScatteredInterpolation/tlSER/src/rbf.jl:249 [inlined]
[4] interpolate(rbf::Multiquadratic{Int64}, points::Matrix{Float64}, samples::Vector{Float64}; metric::Distances.Euclidean, returnRBFmatrix::Bool, smooth::Bool)
@ ScatteredInterpolation ~/.julia/packages/ScatteredInterpolation/tlSER/src/rbf.jl:201
[5] interpolate(rbf::Multiquadratic{Int64}, points::Matrix{Float64}, samples::Vector{Float64})
@ ScatteredInterpolation ~/.julia/packages/ScatteredInterpolation/tlSER/src/rbf.jl:185
[6] top-level scope
@ In[11]:3
I wonder what i am missing here. Am i doing something wrong? Is the documentation showing some deprecated syntax here? Is the whole package broken?