If I have [20, 10, 1], I want to get [10, 9, 1] as my output. How can I do this?
([20, 10, 1] = [10+9+1, 9+1, 1])
I want to do this in numpy. Thank you!
If I have [20, 10, 1], I want to get [10, 9, 1] as my output. How can I do this?
([20, 10, 1] = [10+9+1, 9+1, 1])
I want to do this in numpy. Thank you!