Why two dot functions? Won't they both give the same answer?

Also, does the dot function allow for Tensor - Vector operations?