Multiply an m×n matrix by a length-n vector by computing each output entry as the dot product of one matrix row with the vector.
Implement solve(A, x).
Returns. Return a NumPy array of length m.
Example 1
Input:
solve([[1.0, 2.0], [3.0, 4.0]], [1.0, 1.0])
Output:
[3.0, 7.0]
Example 2
Input:
solve([[0.0, 1.0, 0.0]], [5.0, 6.0, 7.0])
Output:
[6.0]
No results yet
Run your code to check it against the examples, or submit to run every test.