function.dot support for libmatrix.Vector