Map each input row to a lower-dimensional code with a single affine transform: Z=XW+b, where X is n×d, W is d×m with m<d and b has length m.
Implement solve(X, W, b).
Returns. Return an n×m NumPy array.
Example 1
Input:
solve([[1, 2, 3], [4, 5, 6]], [[1, 0], [0, 1], [1, 1]], [0, 1])
Output:
[[4, 6], [10, 12]]
Example 2
Input:
solve([[1, 1]], [[2], [3]], [1])
Output:
[[6]]
No results yet
Run your code to check it against the examples, or submit to run every test.