What is the inverse of the numpy cumsum function?

前端 未结 4 1330
自闭症患者
自闭症患者 2020-12-10 01:58

If I have z = cumsum( [ 0, 1, 2, 6, 9 ] ), which gives me z = [ 0, 1, 3, 9, 18 ], how can I get back to the original array [ 0, 1, 2, 6, 9 ]<

4条回答
提交回复
热议问题