3 ms·
Ah, I've had a slightly different task many times: porting a high level algorithm from MATLAB or labview or keras to C. As part of this I construct a series of
by bobmcnamara 2y ago
Ah, I've had a slightly different task many times: porting a high level algorithm from MATLAB or labview or keras to C.
As part of this I construct a series of test inputs, and confirm that they are bitwise equivalent to the high level language. It's usually as simple as aligning the rounding mode, disabling fused MAC, and a few other compiler flags that shouldn't be project defaults.
The other fun part is using the vector unit - for that we have to define IEEE arithmetic in the order the embedded device does it(usually 4x or 8x interleaved), port that back up, and verify.
Never did use a whole lot of transcendentals - maybe due to the domains I worked in.