Skip to content

Commit

Permalink
add parallel to vector functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ManosPapadakis95 committed Jul 10, 2023
1 parent 747beec commit 5bc90bc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions R/Quantile.R
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
#[export]
Quantile <- function(x, probs) {
.Call(Rfast2_Quantile, x, probs)
# [export]
Quantile <- function(x, probs, parallel = FALSE) {
.Call(Rfast2_Quantile, x, probs, parallel)
}

#[export]
# [export]
rowQuantile <- function(x, probs, parallel = FALSE, cores = 0) {
.Call(Rfast2_rowQuantile, x, probs, parallel, cores)
}

#[export s3]
# [export s3]
colQuantile.data.frame <- function(x, probs, parallel = FALSE, cores = 0) {
.Call(Rfast2_colQuantile, x, probs, parallel, cores)
}
#[export]
# [export]
colQuantile <- function(x, probs, parallel = FALSE, cores = 0) {
UseMethod("colQuantile")
}
#[export s3]
# [export s3]
colQuantile.matrix <- function(x, probs, parallel = FALSE, cores = 0) {
.Call(Rfast2_colQuantile, x, probs, parallel, cores)
}
4 changes: 2 additions & 2 deletions R/trim.mean.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#[export]
trim.mean <- function(x, a = 0.05) {
.Call(Rfast2_trimmean, x, a)
trim.mean <- function(x, a = 0.05, parallel = FALSE) {
.Call(Rfast2_trimmean, x, a, parallel)
}

#[export]
Expand Down

0 comments on commit 5bc90bc

Please sign in to comment.