computer inner-product of two containers