5 ms·
in Haskell (and maybe ML), you might have vectorDotProduct = map (*)
by lsb 18y ago
in Haskell (and maybe ML), you might have
vectorDotProduct = map (*)
- lincolnq 18y agoYou probably meant: vectorDotProduct = zipWith ( * ) (and this doesn't even include the sum) map ( * ) has type Num a => [a] -> [a -> a] which is not really what the dot product should be.