Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ilpropheta/3de6d7545c76efa74005b205299380c8 to your computer and use it in GitHub Desktop.
Save ilpropheta/3de6d7545c76efa74005b205299380c8 to your computer and use it in GitHub Desktop.
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