TensorPrimitives asymmetry between MultiplyAdd and MultiplyAddEstimate with trivial inputs #112989
Labels
area-System.Numerics.Tensors
bug
in-pr
There is an active PR which will close this issue when it is merged
Description
I am seeing some wrong results from TensorPrimitives.MultiplyAddEstimate() when using 64-bit integral types.
Reproduction Steps
In the program below, various types are tested for symmetry of results between MultiplyAdd and MultiplyAddEstimate. On my machine, the 64-bit integral types are producing "4, 5, 6" for MultiplyAddEstimate. All results should be "11, 19, 27". Notably, the wrong results coincide with the values of the addends argument.
Expected behavior
All results should be "11, 19, 27".
Actual behavior
The 64-bit integral types are producing "4, 5, 6" for MultiplyAddEstimate.
Regression?
unknown
Known Workarounds
Use MultiplyAdd instead of MultiplyAddEstimate.
Configuration
Windows 11 (10.0.26100) x64
.NET 9.0.200
Other information
No response
The text was updated successfully, but these errors were encountered: