Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

atoti.array.prod #113

Closed
alexis-bvq opened this issue Jul 20, 2020 · 2 comments
Closed

atoti.array.prod #113

alexis-bvq opened this issue Jul 20, 2020 · 2 comments
Assignees
Milestone

Comments

@alexis-bvq
Copy link

Description

As there is atoti.array.sum, it would be nice to have atoti.array.prod that would compute the product of each member of the vector.
A second feature would be too have a cumulative scope on this product that would allow to compute the product over the last n values of the vectors.

Context

For the Simcorp Poc, we need to compute a product over dates. For memory optimisation we thought about vectorizing our datas. Therefore we would need to have atoti.array.prod as there is atoti.array.sum.
The cumulative product is also needed because one measure requires the product of the last 3 days for each different date.
This second feature is similar to the prefix_sum but it would let you choose how many members you want to cumulate.

Other information (if relevant)

@tibdex
Copy link
Member

tibdex commented Jul 27, 2020

True that atoti.array.prod is missing but for the "cumulative scope" part, couldn't you use array slices?

@fabiencelier fabiencelier self-assigned this Sep 28, 2020
@fabiencelier fabiencelier added this to the Next release milestone Nov 5, 2020
@fabiencelier
Copy link
Contributor

fabiencelier commented Nov 5, 2020

atoti.array.prod will be available in the next release

@patachoux patachoux bot closed this as completed Dec 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants