Skip to content

Commit 8a83244

Browse files
committed
chore: Fix call in sample_dirichlet()
1 parent b9dee71 commit 8a83244

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

R/embedding.R

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -359,13 +359,6 @@ sample_sphere_volume <- function(dim, n = 1, radius = 1, positive = TRUE) {
359359
#' RDP.graph.2 <- sample_dot_product(lpvs.dir)
360360
#' colSums(lpvs.dir)
361361
sample_dirichlet <- function(n, alpha) {
362-
# Argument checks
363-
n <- as.numeric(n)
364-
alpha <- as.numeric(alpha)
365-
366-
on.exit(.Call(R_igraph_finalizer))
367-
# Function call
368-
res <- .Call(R_igraph_sample_dirichlet, n, alpha)
369-
370-
res
362+
# Use the _impl function
363+
sample_dirichlet_impl(n = n, alpha = alpha)
371364
}

0 commit comments

Comments
 (0)