[Numpy-discussion] partial_sum/adj_difference?

Neal Becker ndbecker2@gmail....
Tue Feb 19 12:38:06 CST 2008


Does numpy/scipy have a partial_sum and adj_difference function?

partial_sum[i] = \sum_{j=0}^{i} x[j]
adj_diff[i] = x[i] - x[i-1] : i > 1, x[i] otherwise



More information about the Numpy-discussion mailing list