Return an array with the same shape and dtype as proto, every element set to value.
proto
value
Input
proto = [[ 1 0 9] [ 3 23 4]] value = 7
Output
[[7 7 7] [7 7 7]]
This one's part of Premium. Unlock the full NumPy track plus every other premium problem on the site.
solve(...)