gingerBill
|
1419d0d295
|
Minor formatting change
|
2024-11-05 12:45:30 +00:00 |
|
Laytan
|
cb2768625a
|
math/rand: choice_bit_set return not_empty -> ok
|
2024-10-28 20:07:38 +01:00 |
|
Laytan Laats
|
10c2f8dbeb
|
math/rand: add choice_bit_set
|
2024-10-26 13:50:28 +02:00 |
|
Laytan Laats
|
bb4fc9979a
|
math/rand: support non-contiguous enums in choice_enum
|
2024-10-25 20:41:57 +02:00 |
|
gingerBill
|
6bbeb0a243
|
Merge pull request #4203 from karl-zylinski/file-tags-without-comments
Make tags use #+ syntax instead of //+
|
2024-09-19 12:36:43 +01:00 |
|
gingerBill
|
e17dfcf7a2
|
Remove distinct from core:math/linalg/(glsl|hlsl) types
|
2024-09-18 00:13:34 +01:00 |
|
Karl Zylinski
|
19f0127e55
|
Moved all packages in core, base, vendor, tests and examples to use new #+ file tag syntax.
|
2024-09-14 18:27:49 +02:00 |
|
Jeroen van Rijn
|
beb10cce63
|
Fix #4227
|
2024-09-10 15:31:57 +02:00 |
|
Laytan Laats
|
288312a812
|
core: improve package doc comments for the documentation generator
|
2024-09-03 19:59:04 +02:00 |
|
Jeroen van Rijn
|
dd1f151696
|
Add math.remap_clamped.
|
2024-09-01 17:22:58 +02:00 |
|
Karl Zylinski
|
6e150d1d58
|
Make math.remap clamp the result in range [new_min, new_max].
|
2024-09-01 16:30:48 +02:00 |
|
gingerBill
|
eb799393d5
|
Fix -vet-tabs issues
|
2024-08-24 13:56:41 +01:00 |
|
Feoramund
|
2906f2aa7e
|
Add core:math.count_digits_of_base
|
2024-08-18 20:14:14 -04:00 |
|
Jeroen van Rijn
|
f627a38b4f
|
Update rand.reset() example.
|
2024-07-31 20:00:55 +02:00 |
|
Jeroen van Rijn
|
24e6f16f4a
|
Clamp dot in angle_between to avoid precision errors.
Fixes #3978
|
2024-07-28 15:00:29 +02:00 |
|
gingerBill
|
0d881e1561
|
Improve rand.shuffle further by splitting into 64-bit and 32-bit parts
|
2024-07-16 18:36:31 +01:00 |
|
gingerBill
|
ba49950454
|
Improve rand.shuffle
|
2024-07-16 18:33:01 +01:00 |
|
gingerBill
|
a3fe5754d9
|
Make complex32 use higher precision where possible for calculations
|
2024-07-16 15:31:00 +01:00 |
|
gingerBill
|
8642d719f0
|
Imply #no_capture to all variadic parameters
|
2024-07-14 12:19:47 +01:00 |
|
gingerBill
|
c7bd954752
|
Add more uses of #no_capture
|
2024-07-14 11:56:04 +01:00 |
|
gingerBill
|
1770e3a9a9
|
Fix typo
|
2024-07-11 17:19:12 +01:00 |
|
gingerBill
|
19753ed8a3
|
Add rand.Generator and other calls
|
2024-07-11 17:12:42 +01:00 |
|
gingerBill
|
59d87d1f05
|
Add gen := context.random_generator parameters to rand calls
|
2024-07-11 17:01:34 +01:00 |
|
Laytan Laats
|
2d8d0dd851
|
fix @(optimization_mode) usage in builtin collections
|
2024-07-08 21:07:53 +02:00 |
|
Jeroen van Rijn
|
476d0087c8
|
Fix bug in div3 fast path.
|
2024-06-29 23:14:12 +02:00 |
|
gingerBill
|
e296d6fb90
|
Fix loads of indentation issues with mixing spaces and tabs
|
2024-06-29 19:50:51 +01:00 |
|
gingerBill
|
5413a8b744
|
Even more style fixes
|
2024-06-29 19:11:36 +01:00 |
|
gingerBill
|
3f9a58808c
|
More style improvements
|
2024-06-29 19:07:34 +01:00 |
|
Feoramund
|
2af121752a
|
Require base:runtime import in core:math/linalg
|
2024-06-28 11:34:35 -04:00 |
|
Jeroen van Rijn
|
c33bf7673f
|
Fix core:math/fixed.
|
2024-06-26 20:12:55 +02:00 |
|
gingerBill
|
149ecafdef
|
Remove the need for rand in core:math/big
|
2024-06-15 15:43:57 +01:00 |
|
gingerBill
|
7ec17ecf98
|
Update core:math/rand to use context.random_generator and remove rand.Rand
|
2024-06-15 15:33:24 +01:00 |
|
gingerBill
|
318d5e4a7e
|
Add Reset mode
|
2024-06-15 15:17:23 +01:00 |
|
gingerBill
|
c2a01096c4
|
Remove unneeded reassignment of r
|
2024-06-15 14:49:09 +01:00 |
|
gingerBill
|
dc4ec8638c
|
Add runtime.Random_Generator interface
|
2024-06-15 14:45:57 +01:00 |
|
Jeroen van Rijn
|
908a6ff2d4
|
Elide unnecessary condition
|
2024-06-14 21:34:05 +02:00 |
|
Josh Jones
|
759139089f
|
Fix big.shrink not actually shrinking
|
2024-06-14 19:58:13 +02:00 |
|
gingerBill
|
c1e81dc14d
|
Fix #3726
|
2024-06-10 15:05:24 +01:00 |
|
Jeroen van Rijn
|
5985c6e3df
|
Merge pull request #3718 from Feoramund/add-missing-big-atoi-alias
Add missing `string_to_int` alias in `core:math/big`
|
2024-06-10 03:58:56 +02:00 |
|
Feoramund
|
70820c2c40
|
Add missing string_to_int alias in core:math/big
|
2024-06-09 21:42:31 -04:00 |
|
Feoramund
|
5fbd876db1
|
Add permutation & combination procedures to core:math/big
|
2024-06-09 20:42:04 -04:00 |
|
gingerBill
|
3a9b86628a
|
Add @(rodata) and @(static, rodata) where appropriate
|
2024-06-06 15:23:52 +01:00 |
|
Feoramund
|
88598c2c64
|
Make use of runtime.Raw_* types in core:math/linalg
|
2024-06-03 15:58:33 -04:00 |
|
Feoramund
|
01ad69413a
|
Remove unused code in internal_random_prime
|
2024-05-28 01:36:44 -04:00 |
|
shashank
|
fb6248925a
|
fix pitch_from_quaternion
|
2024-05-27 23:38:50 +05:30 |
|
Laytan
|
d7fdccb08c
|
fix a couple of -vet-style failures after f54977336b
|
2024-05-09 19:39:48 +02:00 |
|
IllusionMan1212
|
1f5f417116
|
fix(linalg/glsl): incorrect quat by vector3 multiplication
|
2024-04-28 21:44:34 +02:00 |
|
Yawning Angel
|
e2fa9be7e2
|
core/math/rand: Use core:crypto for the system RNG
This removes some code duplication and expands support for the system
RNG to all targets that `core:crypto` supports.
|
2024-04-23 11:47:43 +09:00 |
|
Feoramund
|
3e449e93dd
|
Implement Fisher-Yates shuffle
|
2024-04-15 17:07:05 -04:00 |
|
Feoramund
|
a294f067a9
|
Fix big.internal_random_prime with Second_MSB_On
|
2024-04-15 05:49:15 -04:00 |
|