Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
montyvesselinov committed Apr 1, 2020
1 parent 04e095d commit 5dbf210
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Kriging.jl
Original file line number Diff line number Diff line change
Expand Up @@ -361,18 +361,17 @@ Returns:
""" estimationerror

function getgridpoints(xs::AbstractVector, ys::AbstractVector)
gridxyz = Array{Float64}(undef, 2, length(xs) * length(ys))
gridxy = Array{Float64}(undef, 2, length(xs) * length(ys))
local i = 1
for x in xs
for y in ys
gridxyz[1, i] = x
gridxyz[2, i] = y
gridxy[1, i] = x
gridxy[2, i] = y
i += 1
end
end
return gridxyz
return gridxy
end

function getgridpoints(xs::AbstractVector, ys::AbstractVector, zs::AbstractVector)
gridxyz = Array{Float64}(undef, 3, length(xs) * length(ys) * length(zs))
local i = 1
Expand Down

0 comments on commit 5dbf210

Please sign in to comment.