-
-
Notifications
You must be signed in to change notification settings - Fork 95
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
Cumsum cumprod #492
Cumsum cumprod #492
Conversation
Thanks! Can you add a test in the test suite? Ultimately we likely want that parallelized and a test would be helpful to ensure that we don't mess it up. |
I added the test for these procedures. I'm gonna commit the changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nim's early symbol resolution strikes again :/ nim-lang/Nim#8677 nim-lang/Nim#6387
## - t: a rank-n tensor to cumulatively sum | ||
## - axis: int | ||
## Returns: | ||
## - A tensor cumulatively summed at axis, that is, add each value to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add mixin _
here, it seems like the _
symbol is not visible in some cases and breaks CI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added
## - t: a rank-n tensor to cumulatively sum | ||
## - axis: int | ||
## Returns: | ||
## - A tensor cumulatively summed at axis, that is, add each value to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and similar here can you add mixin _
here, it seems like the _
symbol is not visible in some cases and breaks CI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added
Following the issue: #491 @HugoGranstrom helped me develop those two procedures:
cumsum
andcumprod
, which are very useful to scientific computing and finance.