R/test_wrappers.R

Defines functions call_hungarian

#------------------------------------------------
# calls C++ implementation of the Hungarian algorithm for binding best matching
# in a linear sum assigment problem. This is function is used in testing.
# (not exported)
#' @noRd
call_hungarian <- function(x) {
  args <- list(cost_mat = mat_to_rcpp(x))
  call_hungarian_cpp(args)
}
bobverity/rmaverick documentation built on Jan. 18, 2022, 12:41 p.m.