1#ifndef TATAMI_PARALLELIZE_HPP
2#define TATAMI_PARALLELIZE_HPP
7#ifndef TATAMI_CUSTOM_PARALLEL
57template<
bool parallel_ = true,
class Function_,
typename Index_>
58int parallelize(Function_ fun,
const Index_ tasks,
const int workers) {
59 if constexpr(parallel_) {
60#ifdef TATAMI_CUSTOM_PARALLEL
61 return TATAMI_CUSTOM_PARALLEL(fun, tasks, workers);
int parallelize_range(int num_workers, const Task_ num_tasks, const Run_ run_task_range)
Flexible representations for matrix data.
Definition Extractor.hpp:15
int parallelize(Function_ fun, const Index_ tasks, const int workers)
Definition parallelize.hpp:58