Last active
November 12, 2017 17:36
-
-
Save ilpropheta/3de6d7545c76efa74005b205299380c8 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, auto b){ return max(a,b); }, // "sum" | |
[](auto l, auto r) { return fabs(r-l); }); // "product" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment