You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When working with the arm_sqrt_q31 function, I noticed that it returns ARM_MATH_ARGUMENT_ERROR for input 0. The documentation specifies that the allowed input range is [0, +1). I would expect 0 to return 0 and give ARM_MATH_SUCCESS instead, but it only does the former not the latter. The return value documentation seems to miss the "neutral" case since it specifies:
@return execution status
- \ref ARM_MATH_SUCCESS : input value is positive
- \ref ARM_MATH_ARGUMENT_ERROR : input value is negative; *pOut is set to 0
Perhaps there's a wrong understanding of the code/documentation on my part.
The text was updated successfully, but these errors were encountered:
When working with the arm_sqrt_q31 function, I noticed that it returns
ARM_MATH_ARGUMENT_ERROR
for input 0. The documentation specifies that the allowed input range is[0, +1)
. I would expect 0 to return 0 and giveARM_MATH_SUCCESS
instead, but it only does the former not the latter. The return value documentation seems to miss the "neutral" case since it specifies:Perhaps there's a wrong understanding of the code/documentation on my part.
The text was updated successfully, but these errors were encountered: