|
|
|
|
valarray<uint64_t> differ = row - row.min();
|
|
I want to combine (the substation and the copy) in one line.
copy (InputIterator first, InputIterator last, OutputIterator result);
copy has only one overload and all of its arguments are for inputs and output ONLY.
|
|
for( int i = 0, min = *row.begin(), bool = 1; i < row.size(); i++) { if(bool) min = std::min(row[i], min) else ptr[i] = row[i]; if(i==row.size() && bool--) i = 0; }