bug fix in inner_product impl
Merge pull request #40 from gnzlbg/inner_product_bugfix

Bug fix in inner_product implementation