junk/polynom.R

poly_calc_coef_cols <- function(x, coefs, parallel = FALSE) {
  n_cores <- translate_parallel(parallel)
  RcppParallel::setThreadOptions(n_cores)
  on.exit(RcppParallel::setThreadOptions(RcppParallel::defaultNumThreads()))
  poly_calc_coef_cols_(x, coefs)
}
rorynolan/detrendr documentation built on March 9, 2023, 10:26 p.m.