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

Suggestion to add exact sum functions in BasicMathFunctions folder #1494

Closed
wants to merge 10 commits into from

Conversation

Silfurion
Copy link

Hello,
In some of our projects, we would like to accelerate the sum of vector elements. At the moment CMSIS doesn't offer a simple sum function. The closest method was the mean method that unfortunately doesn't offer an exact result if we want to multiply its result by the size of the array to get back the sum of the vector.

With this pull request we would like to suggest the addition of a new sum function that would allow to benefit from the already implemented and accelerated mean function, but without the final division to obtain a more accurate sum result.

We added these function in the BasicMathFunctions folder available for q7 , q15 , q31 , float16 , float32 and float64.

Thanks again

@christophe0606
Copy link
Contributor

@Silfurion I'll need to write and add some tests before I can merge this PR.
Also, I'll rename the function to accumulate if you don't mind.

@ARM-software ARM-software deleted a comment from grasci-arm Jun 23, 2022
@christophe0606
Copy link
Contributor

There were some pending questions in this PR.

Accumulation functions are now tracked in this new github issues on the new CMSIS-DSP repository : ARM-software/CMSIS-DSP#12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants