big_parallelize: big_parallelize

Description Usage Arguments Value

View source: R/Sketch.R

Description

parallel call a function on file-backed matrix

Usage

1
2
3
4
5
6
7
8
big_parallelize(
  X,
  p.FUN,
  p.combine = NULL,
  ind = bigstatsr::cols_along(X),
  ncores = 4,
  ...
)

Arguments

X

is a file-backed data matrix

p.FUN

is a function to apply

p.combine

is a rule to combine the results from each core

ind

is a vector of column indeces on which the computations are performed

ncores

is a nuber of cores

...

are additional parameters

Value

The result of the parallel computations


chickn documentation built on Jan. 13, 2021, 10:53 p.m.