Skip to content

Commit 4caf225

Browse files
changes to funs.fixed.R that will be overwritten
1 parent c391bd3 commit 4caf225

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

selectiveInference/R/funs.fixed.R

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,12 @@ InverseLinftyOneRowC <- function (Sigma, i, mu, maxiter=50) {
346346
basis_vector[i] = 1.
347347
theta = rep(0, p)
348348

349+
Sigma_ = as.double(Sigma)
350+
Sigma_diag_ = as.double(diag(Sigma))
351+
349352
val = .C("find_one_row",
350-
Sigma=as.double(Sigma),
351-
Sigma_diag=as.double(diag(Sigma)),
353+
Sigma=Sigma_,
354+
Sigma_diag=Sigma_diag_,
352355
Sigma_theta=as.double(rep(0, p)),
353356
ever_active=as.integer(i),
354357
nactive_ptr=as.integer(1),

0 commit comments

Comments
 (0)