Mantid
Loading...
Searching...
No Matches
ParallelMinMax.h
Go to the documentation of this file.
1#include "MantidKernel/DllConfig.h"
2
3#include <utility>
4#include <vector>
5
6#include "tbb/parallel_for.h"
7#include "tbb/parallel_reduce.h"
8
9namespace Mantid::Kernel {
10
16template <typename T> std::pair<T, T> parallel_minmax(std::vector<T> const *const vec, size_t const grainsize = 1000);
17
23template <typename T>
24std::pair<T, T> parallel_minmax(std::shared_ptr<std::vector<T>> const &vec, size_t const grainsize = 1000);
25
31template <typename T>
32std::pair<T, T> parallel_minmax(std::unique_ptr<std::vector<T>> const &vec, size_t const grainsize = 1000);
33
34} // namespace Mantid::Kernel
std::vector< T > const * vec
std::pair< T, T > parallel_minmax(std::vector< T > const *const vec, size_t const grainsize=1000)
parallel_minmax