Skip to content

Commit 3da159a

Browse files
committed
chore: Fix call in sample_dirichlet()
1 parent bb38059 commit 3da159a

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
@@ -349,13 +349,6 @@ sample_sphere_volume <- function(dim, n = 1, radius = 1, positive = TRUE) {
349349
#' RDP.graph.2 <- sample_dot_product(lpvs.dir)
350350
#' colSums(lpvs.dir)
351351
sample_dirichlet <- function(n, alpha) {
352-
# Argument checks
353-
n <- as.numeric(n)
354-
alpha <- as.numeric(alpha)
355-
356-
on.exit(.Call(R_igraph_finalizer))
357-
# Function call
358-
res <- .Call(R_igraph_sample_dirichlet, n, alpha)
359-
360-
res
352+
# Use the _impl function
353+
sample_dirichlet_impl(n = n, alpha = alpha)
361354
}

0 commit comments

Comments
 (0)