jun
9ddea4bb07
Change short-string approach to use 32 instead of 40 bytes
2025-03-11 12:24:44 +01:00
jun
c860a6ccfe
Add 3x3 matrix inversion
2025-03-08 11:25:57 +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
9096a4f9c9
Add guf_nearly_zero/one
2025-03-07 13:42:28 +01:00
jun
7b433cd776
Add matrix inversion
2025-03-07 10:58:08 +01:00
jun
364dd603cf
Fix guf_dict size types
2025-03-06 13:51:32 +01:00
jun
d057d76334
Rename GUF_STATIC_BUF_SIZE
2025-03-06 12:02:18 +01:00
jun
e489dd694b
Add quaternion operations
2025-03-06 11:52:24 +01:00
jun
fc8118c182
Add linear algebra functions
2025-03-04 12:30:02 +01:00
jun
24bc8d5a15
Add guf_str_view functions
2025-03-04 08:18:35 +01:00
jun
301477f5c6
Add GUF_CSTR_TO_VIEW_CPP
2025-03-04 08:01:41 +01:00
jun
9d62df6a83
Add more dict tests
2025-03-04 06:52:42 +01:00
jun
8e6ffcdc70
Add dict_erase tests
2025-03-03 16:14:13 +01:00
jun
a41ff868f2
Fix guf_dict probing
2025-03-03 11:28:40 +01:00
jun
4d97725bba
Fix guf_dict growth bug
2025-03-02 21:41:30 +01:00
jun
cd1c1cd5db
Refactor
2025-03-02 18:25:54 +01:00
jun
8b02eff3b7
Make preserved_delims work (in guf_str_next_tok)
2025-02-27 13:02:28 +01:00
jun
217622d816
Add tokeniser
2025-02-27 10:21:21 +01:00
jun
d450cd8a45
Add utf-8 handling
2025-02-27 07:12:43 +01:00
jun
60e2849b01
Work on utf-8
2025-02-26 03:57:04 +01:00
jun
7a990c810e
Add more tests
2025-02-25 15:12:38 +01:00
jun
6abe12c4c1
Improve tests
2025-02-25 14:01:20 +01:00
jun
c1e125dfcb
Add C++ tests
2025-02-24 00:01:48 +01:00
jun
4c35d180e8
Improve iterator functions
2025-02-23 13:36:09 +01:00
jun
1f16b0e849
Fix dbuf iterator begin for dbuf.size == 0
2025-02-23 09:45:29 +01:00
jun
13abedd2ad
Implement guf_dict
2025-02-23 09:18:50 +01:00
jun
81fc19aa85
Work on guf_dict
2025-02-19 08:18:18 +01:00
jun
22ebd8aa05
Add guf_rand with 32-bit operations (using xoshiro128** 1.1)
2025-02-18 20:06:59 +01:00
jun
f911933588
Fix overflow in guf_rand32range_i32 and guf_randrange_i64
2025-02-15 18:04:53 +01:00
jun
500fd47986
Add guf_rand32
2025-02-15 04:36:58 +01:00
jun
6b222eafc1
Add guf_rand
2025-02-15 03:00:15 +01:00
jun
fd58daa8b5
Change iterator
2025-02-01 13:31:15 +01:00
jun
df9d1c9c10
Add iter index functions
2025-01-30 16:10:10 +01:00
jun
67b5759e03
Change sort function name
2025-01-30 14:07:08 +01:00
jun
8c324c00f7
Major refactor
2025-01-30 13:29:14 +01:00
jun
c9b18a220e
Rewrite dbuf
2025-01-27 10:06:54 +01:00
jun
be2daf72fd
Add better error handling
2025-01-08 23:32:55 +01:00
jun
e668be2612
Add integer functions
2025-01-07 11:40:58 +01:00
jun
ad97de47a6
Add dbuf_sort
2025-01-05 03:48:35 +01:00
jun
73eb83484a
Add cmp_void operators.
2025-01-05 02:36:36 +01:00
jun
9e0da64cb4
Use macro templates instead of void pointers
2025-01-04 19:47:15 +01:00
jun
0751726fc5
Initial commit
2025-01-03 10:38:57 +01:00