inner_product « STL Algorithms Helper « C++






1.Use inner_product to process sum of all products(0 + 1*1 + 2*2 + 3*3 + 4*4 + 5*5 + 6*6)
2.Use inner_product to calculate inner reverse product
3.Use inner_product with inner and outer operation
4.inner_product( ) produces a summation of the product of corresponding elements in two sequences and returns the result.
5.Compute the sample standard deviation