Skip to content

Commit 24fc6c8

Browse files
committed
Remove dependency on GeoStatsFunctions.matrixparams
1 parent 5c2c612 commit 24fc6c8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/krig.jl

+4-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ function initkrig(model::KrigingModel, data)
7373
tab = values(data)
7474

7575
# retrieve matrix parameters
76-
V, (_, nobs, nvar) = GeoStatsFunctions.matrixparams(fun, dom)
76+
nobs = nelements(dom)
77+
nvar = nvariates(fun)
7778
ncon = nconstraints(model)
7879
nrow = nobs * nvar + ncon
7980

@@ -84,6 +85,8 @@ function initkrig(model::KrigingModel, data)
8485
end
8586

8687
# pre-allocate memory for LHS
88+
F = fun(dom[1], dom[1])
89+
V = eltype(ustrip.(F))
8790
LHS = Matrix{V}(undef, nrow, nrow)
8891

8992
# set main block with pairwise evaluation

0 commit comments

Comments
 (0)