1#ifndef SCRAN_MACROS_HPP
2#define SCRAN_MACROS_HPP
32#ifdef SCRAN_CUSTOM_PARALLEL
34#ifndef TATAMI_CUSTOM_PARALLEL
35#define TATAMI_CUSTOM_PARALLEL SCRAN_CUSTOM_PARALLEL
38#ifndef IRLBA_CUSTOM_PARALLEL
41template<
class Function>
42void irlba_parallelize_(
int nthreads, Function fun) {
43 SCRAN_CUSTOM_PARALLEL([&](
size_t,
size_t f,
size_t l) ->
void {
47 for (
size_t i = 0; i < l; ++i) {
50 }, nthreads, nthreads);
55#define IRLBA_CUSTOM_PARALLEL scran::irlba_parallelize_
Functions for single-cell RNA-seq analyses.
Definition AggregateAcrossCells.hpp:18