(C++) std::inner\_product

February 24, 2017 · View on GitHub

 

 

 

 

 

(C++) std::inner_product

 

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.

 

 

 

 

 

Exampples

 

 

 

 

 

 

External links

 

  • Cppreference.com page about std::inner_product
  • Cplusplus.com page about std::inner_product

 

 

 

 

 

 

Contents

  1. 1Exampples
  2. 2External links