|
BitMagic-C++
|
Builder class to prepare a batch of tasks for parallel optimization of a sparse vector. More...
#include <bmsparsevec_parallel.h>
Data Structures | |
| struct | task_batch |
Public Types | |
| typedef SVect | sparse_vector_type |
| typedef Lock | lock_type |
| typedef sparse_vector_type::bvector_type | bvector_type |
| typedef bvector_type::allocator_type | allocator_type |
| typedef bvector_type::optmode | optmode_type |
| typedef sparse_vector_type::statistics | sv_statistics_type |
Static Public Member Functions | |
| static void | build_plan (task_batch &batch, sparse_vector_type &sv, typename bvector_type::optmode opt_mode=bvector_type::opt_compress, typename sparse_vector_type::statistics *st=0) |
| Build paralell optimization batch (of tasks) for sparse vector. | |
Builder class to prepare a batch of tasks for parallel optimization of a sparse vector.
Definition at line 36 of file bmsparsevec_parallel.h.
| typedef bvector_type::allocator_type bm::optimize_plan_builder< SVect, Lock >::allocator_type |
Definition at line 43 of file bmsparsevec_parallel.h.
| typedef sparse_vector_type::bvector_type bm::optimize_plan_builder< SVect, Lock >::bvector_type |
Definition at line 42 of file bmsparsevec_parallel.h.
| typedef Lock bm::optimize_plan_builder< SVect, Lock >::lock_type |
Definition at line 40 of file bmsparsevec_parallel.h.
| typedef bvector_type::optmode bm::optimize_plan_builder< SVect, Lock >::optmode_type |
Definition at line 44 of file bmsparsevec_parallel.h.
| typedef SVect bm::optimize_plan_builder< SVect, Lock >::sparse_vector_type |
Definition at line 39 of file bmsparsevec_parallel.h.
| typedef sparse_vector_type::statistics bm::optimize_plan_builder< SVect, Lock >::sv_statistics_type |
Definition at line 45 of file bmsparsevec_parallel.h.
|
inlinestatic |
Build paralell optimization batch (of tasks) for sparse vector.
| batch | - target batch (can be re-used for multiple vectors) |
| sv | - sparse vector for optimization |
| opt_mode | - optimization mode (see bvector<>::optmode) |
| st | - sparse vector statistics to compute with optimization pass (optional) |
Definition at line 61 of file bmsparsevec_parallel.h.
References bm::task_batch< BVAlloc >::add(), BM_DECLARE_TEMP_BLOCK, bm::task_batch< BVAlloc >::get_task_vector(), bm::bvector< Alloc >::opt_compress, and bm::bv_statistics::reset().