each row of A multiplied by B

Call signature
('ij,kj->ikj', A, B)
NumPy equivalent
A[:, None] * B