JuliaLang/julia

Make `cumsum(A)` compute a summed-area table

Open

#26,412 建立於 2018年3月10日

在 GitHub 查看
 (8 留言) (3 反應) (0 負責人)Julia (5,773 fork)batch import
arraysgood first issue

倉庫指標

Star
 (48,709 star)
PR 合併指標
 (平均合併 20天 6小時) (30 天內合併 157 個 PR)

描述

The idea has been discussed in a few places (e.g. https://github.com/JuliaLang/julia/issues/20041#issuecomment-275938676) to make cumsum(A) return a summed-area table for multidimensional arrays.

The 1D case is already a summed-area table, since that's just the cumulative sum along the one dimension.

Happily, the appropriate deprecation for cumsum — deprecating it for AbstractArrays with no dims argument — is already in place, so this is just a tracking issue for the idea.

cc: @simonbyrne

貢獻者指南