zephyrproject-rtos / zscilib

An open-source scientific computing library for embedded systems running Zephyr OS or standalone.
https://zephyrproject-rtos.github.io/zscilib/
Apache License 2.0
141 stars 27 forks source link

Issue with zsl_mtx_mult() function #53

Open Ananyaaynana opened 1 year ago

Ananyaaynana commented 1 year ago

When multiplying 3 matrices of sizes 1x5, 5x5 and 5x1 respectively using the zsl_mtx_mult() function this is the answer: 1.000002000003723766352603519181e-02

When multiplying these matrices using the zephyr RTOS by writing them as arrays and using loops and multiplication operator this is the answer: 1.000000000003723778230213525831e-02

I am not able to figure out why this issue is happening.

The impact of this issue is I am not able to zsl_mtx_mult function which is heavily needed as part of the project.

The version of zephyr I am using is 3.4.99.