Skip to content

Commit

Permalink
Remove Compat residue.
Browse files Browse the repository at this point in the history
  • Loading branch information
eljungsk committed Jun 15, 2018
1 parent 4b54c36 commit 7493278
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/ScatteredInterpolation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ using Distances,
export interpolate,
evaluate

@compat abstract type ScatteredInterpolant end
@compat abstract type InterpolationMethod end
abstract type ScatteredInterpolant end
abstract type InterpolationMethod end

include("./rbf.jl")
include("./idw.jl")
Expand Down
4 changes: 2 additions & 2 deletions src/rbf.jl
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function interpolate(rbf::RadialBasisFunction,

# Compute pairwise distances and apply the Radial Basis Function
A = pairwise(metric, points)
@dotcompat A = rbf(A)
@. A = rbf(A)

# Solve for the weights
w = A\samples
Expand Down Expand Up @@ -165,7 +165,7 @@ function evaluate(itp::RBFInterpolant, points::AbstractArray{<:Real, 2})

# Compute distance matrix
A = pairwise(itp.metric, points, itp.points)
@dotcompat A = itp.rbf(A)
@. A = itp.rbf(A)

# Compute the interpolated values
return A*itp.w
Expand Down

0 comments on commit 7493278

Please sign in to comment.