Skip to content

Commit

Permalink
trying to repair a gcc-UBSAN issue
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyGelb committed May 22, 2024
1 parent 8a3297a commit 4e42328
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion R/nkde_execution_functions_sf.R
Original file line number Diff line number Diff line change
Expand Up @@ -1415,7 +1415,7 @@ nkde <- function(lines, events, w, samples, kernel_name, bw, adaptive=FALSE, tri
#' adaptive = FALSE, agg = 15,
#' method = "discontinuous", digits = 1, tol = 1,
#' grid_shape = c(3,3),
#' verbose=FALSE)
#' verbose=TRUE)
#' ## make sure any open connections are closed afterward
#' if (!inherits(future::plan(), "sequential")) future::plan(future::sequential)
#' }
Expand Down
2 changes: 1 addition & 1 deletion man/nkde.mc.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/nkde_discontinuous.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ arma::vec esd_kernel_rcpp_arma_sparse(fptr kernel_func, arma::sp_imat &edge_mat,
double d2 = line_weights[edge_id-1] + cas.d;

if (d2<bw and new_depth<max_depth){
// acase new_cas = {d2,new_alpha,v2,v,new_depth};
//data_holder.push_back(new_cas);
data_holder.push_back((struct acase){d2,new_alpha,v2,cas.v,new_depth});
acase new_cas = {d2,new_alpha,v2,cas.v,new_depth};
data_holder.push_back(new_cas);
//data_holder.push_back((struct acase){d2,new_alpha,v2,cas.v,new_depth});
}
}
}
Expand Down
File renamed without changes.

0 comments on commit 4e42328

Please sign in to comment.