Generating a vector from successive multiplications of another vector from an initial value

Paulo da Silva p_s_d_a_s_i_l_v_a_ns at netcabo.pt
Thu Oct 1 21:01:57 EDT 2015


Às 23:36 de 01-10-2015, Oscar Benjamin escreveu:
> 
> On Thu, 1 Oct 2015 21:51 Paulo da Silva <p_s_d_a_s_i_l_v_a_ns at netcabo.pt
> <mailto:p_s_d_a_s_i_l_v_a_ns at netcabo.pt>> wrote:
...

> 
> V * np.cumprod(vec)
> 

Thank you very much Oscar and Duncan.

I googled a lot for such a function. Unfortunately the word "cumulative"
didn't come to my mind!

Paulo





More information about the Python-list mailing list