70
edits
Changes
→Code
This code takes the single-threaded version above and applies TBB to leverage the power of threading to increase performance.
====Code====
<source>#include <algorithm>
#include <cmath>
#include <iostream>
#include <random>
#include <tbb/tbb.h>