我想使這個代碼的並行: std::vector<float> res(n,0);
std::vector<float> vals(m);
std::vector<float> indexes(m);
// fill indexes with values in range [0,n)
// fill vals and indexes
for(size_t i=0; i<m; i++){
我正在計算lambda Term的正常形式。我也有解決方案,所以我知道我的步驟直到「結束」是正確的。 給定的期限是 (\a.\b.(\x.a b x)(\y. b y x) a) (\f. f f)g
和該normalform是 g g (\y. g y x)(\f. f f)
我也得到了這一點,但後來我繼續,我不明白爲什麼這是最後期限。我繼續 g g g (\f. f f) x
然後
//In other words, this equilavent to cv::Mat1f mat(5,n)
//i.e. a matrix 5xn
std::vector<cv::Mat1f> mat(5,cv::Mat1f::zeros(1,n));
std::vector<float> indexes(m);
// fill indexes
// m >> nThreads (f