|
irlba
A C++ library for IRLBA
|
Classes for parallelized multiplication. More...
#include "utils.hpp"#include <vector>#include "Eigen/Dense"#include "subpar/subpar.hpp"

Go to the source code of this file.
Classes | |
| class | irlba::EigenThreadScope |
| Restrict the number of available threads for Eigen. More... | |
Functions | |
| template<typename Task_ , class Run_ > | |
| void | irlba::parallelize (Task_ num_tasks, Run_ run_task) |
Classes for parallelized multiplication.
| void irlba::parallelize | ( | Task_ | num_tasks, |
| Run_ | run_task ) |
| Task_ | Integer type for the number of tasks. |
| Run_ | Function to execute each task. |
| num_tasks | Number of tasks. |
| run_task | Function to execute each task for each worker. |
By default, this is an alias to subpar::parallelize_simple(). Its purpose is to enable irlba-specific customization to the parallelization scheme without affecting other libraries that use subpar. If the IRLBA_CUSTOM_PARALLEL macro is defined, it will be used instead of subpar::parallelize_simple() whenever parallelize() is called. Any user-defined macro should follow the same requirements as the SUBPAR_CUSTOM_PARALLELIZE_SIMPLE override for subpar::parallelize_simple().