scalar product function
Merge branch 'master' of https://github.com/dfm/aas