JuliaLang/julia

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

Open

#26.412 aberto em 10 de mar. de 2018

Ver no GitHub
 (8 comments) (3 reactions) (0 assignees)Julia (5.773 forks)batch import
arraysgood first issue

Métricas do repositório

Stars
 (48.709 stars)
Métricas de merge de PR
 (Mesclagem média 20d 6h) (157 fundiu PRs em 30d)

Description

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

Guia do colaborador