Fixed kernel multiplication with  numpy floats
Merge pull request #2652 from adonath/fix_for_#2174

Fixed kernel multiplication with  numpy floats #2174