#include <parallel_for.hpp>
|
| | ParallelFor () |
| |
| virtual | ~ParallelFor () |
| |
| void | SetConcurrencyLevel (int32_t num) |
| |
| int32_t | GetConcurrencyLevel () |
| |
| void | par_for_inc (const bitCapInt begin, const bitCapInt itemCount, IncrementFunc, ParallelFunc fn) |
| | Iterate through the permutations a maximum of end-begin times, allowing the caller to control the incrementation offset through 'inc'. More...
|
| |
| void | par_for (const bitCapInt begin, const bitCapInt end, ParallelFunc fn) |
| | Call fn once for every numerical value between begin and end. More...
|
| |
| void | par_for_skip (const bitCapInt begin, const bitCapInt end, const bitCapInt skipPower, const bitLenInt skipBitCount, ParallelFunc fn) |
| | Skip over the skipPower bits. More...
|
| |
| void | par_for_mask (const bitCapInt, const bitCapInt, const bitCapInt *maskArray, const bitLenInt maskLen, ParallelFunc fn) |
| | Skip over the bits listed in maskArray in the same fashion as par_for_skip. More...
|
| |
| real1 | par_norm (const bitCapInt maxQPower, const complex *stateArray) |
| | Calculate the normal for the array. More...
|
| |
Called once per value between begin and end.
| Qrack::ParallelFor::ParallelFor |
( |
| ) |
|
|
inline |
| virtual Qrack::ParallelFor::~ParallelFor |
( |
| ) |
|
|
inlinevirtual |
| int32_t Qrack::ParallelFor::GetConcurrencyLevel |
( |
| ) |
|
|
inline |
Call fn once for every numerical value between begin and end.
Iterate through the permutations a maximum of end-begin times, allowing the caller to control the incrementation offset through 'inc'.
Skip over the bits listed in maskArray in the same fashion as par_for_skip.
Skip over the skipPower bits.
For example, if skipPower is 2, it will count: 0000, 0001, 0100, 0101, 1000, 1001, 1100, 1101. ^ ^ ^ ^ ^ ^ ^ ^ - The second bit is untouched.
Calculate the normal for the array.
| void Qrack::ParallelFor::SetConcurrencyLevel |
( |
int32_t |
num | ) |
|
|
inline |
| int32_t Qrack::ParallelFor::numCores |
|
private |
The documentation for this class was generated from the following files: