It determines the value of block.size such that a matrix of doubles of
size n x block.size takes less memory than
getOption("bigstatsr.block.sizeGB") GigaBytes (default is 1GB).
block_size(n, ncores = 1)The number of rows.
The number of cores.
An integer >= 1.
block_size(1e3)
#> [1] 134217
block_size(1e6)
#> [1] 134
block_size(1e6, 6)
#> [1] 22