promptdojo_

Vectors and dot products you can read — step 6 of 7

Write dot(u, v): raise ValueError("shape mismatch") if lengths differ, otherwise return the pairwise-multiply-and-sum. Then score all three rows of X against w and print the prediction list.

full-screen editor opens — close anytime to keep reading.