Input vector (d,)
Weight matrix (d, k)
learned parameters
Matrix multiply
row · column dot products
Output vector (k,)
Matrix multiplication is defined so that entry is the dot product of row of and column of . This forces a shape rule: if is and is , the inner dimensions must match, and the result is .