Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
std::inner_product is an STL algorithm to calculate the inner product of one or two containers, but can be used to do other operations than (!) summing the results, and (2) multiplying the pairwise elements.
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.