| 382 | |
| 383 | template <typename TMapFunc, typename TInputType, typename TOutputType> |
| 384 | static void MapVector(const TMapFunc mapFunc, |
| 385 | const TVector<TInputType>& inputs, |
| 386 | TVector<TOutputType>* mappedInputs |
| 387 | ) { |
| 388 | mappedInputs->yresize(inputs.ysize()); |
| 389 | NPar::ParallelFor( |
| 390 | 0, |
| 391 | inputs.ysize(), |
| 392 | [&] (int inputIdx) { |
| 393 | mapFunc(inputs[inputIdx], &(*mappedInputs)[inputIdx]); |
| 394 | }); |
| 395 | } |
| 396 | |
| 397 | template <typename TMapFunc, typename TStatsType> |
| 398 | static void MapCandidateList( |
no test coverage detected