9 Commits

Author SHA1 Message Date
jun
9c417d2aa1 Add checked arithmetic 2025-05-11 08:55:03 +02:00
jun
d062784425 Add separate 32/64 bit versions to guf_rand 2025-03-29 01:55:32 +01:00
jun
7630ecfdcf Change directory structure 2025-03-21 00:22:34 +01:00
jun
48b366d8e9 Fix warnings in release 2025-03-19 18:29:52 +01:00
jun
9ddea4bb07 Change short-string approach to use 32 instead of 40 bytes 2025-03-11 12:24:44 +01:00
jun
ae104919e0 Change linalg mat_inverse.
Still not sure whether it's better to calculate
rref[pivot_row][col] * (rref[row][pivot_col] / pivot_val) (option 1)
vs.
rref[pivot_row][col] * rref[row][pivot_col] / pivot_val   (option 2)

(i.e.  a * b / c vs. "a * (b/c))

in terms of floating point error.

But I think option 1 (current commit) is better, since the scale factor
(rref[row][pivot_col] / pivot_val) is always <= 1 here (I think).
2025-03-07 21:24:53 +01:00
jun
dac1d159b1 Fix linalg bugs 2025-03-07 16:06:45 +01:00
jun
cd1c1cd5db Refactor 2025-03-02 18:25:54 +01:00
jun
6abe12c4c1 Improve tests 2025-02-25 14:01:20 +01:00