|
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. This is equal to the number of threads in the context of ParallelSparseMatrix. |
| run_task | Function to execute each task within its own worker. |
By default, this is an alias to subpar::parallelize_simple(). However, if the IRLBA_CUSTOM_PARALLEL function-like macro is defined, it is called instead. Any user-defined macro should accept the same arguments as subpar::parallelize_simple().