Last active
November 12, 2017 18:20
-
-
Save ilpropheta/db6cc41119f85161a855c978c65852af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cout << inner_product(begin(expected), end(expected), | |
begin(actual), | |
0.0, // starting value | |
[](auto... a){ return max(fabs(a)...); }, // "sum" | |
minus<>{}); // "product" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment