Compute the dot product between the two vectors a and b.
(a, b)
| 85 | |
| 86 | |
| 87 | def dot(a, b): |
| 88 | """Compute the dot product between the two vectors a and b.""" |
| 89 | return sum(i * j for i, j in zip(a, b)) |
| 90 | |
| 91 | |
| 92 | ################################################################################ |
no test coverage detected