Loading...
Perform element-wise operations between arrays of different shapes.
Broadcasting rules:
Example: (3, 1) + (1, 4) → (3, 4)
Write a function broadcast_arrays(row_vec, col_vec) that demonstrates broadcasting.
Given:
Return a dictionary with:
row = [[1, 2, 3]], col = [[10], [20]]
{'sum': [[11, 12, 13], [21, 22, 23]], ...}Each row_vec element combines with each col_vec element