aboutsummaryrefslogtreecommitdiff
path: root/core/math
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #5859 from odin-lang/bill/change-licensedev-2025-11gingerBill2025-11-0410-10/+10
|\ | | | | Change Odin's LICENSE to zlib from BSD 3-clause
| * Change Odin's LICENSE to zlib from BSD 3-clausegingerBill2025-10-2810-10/+10
| | | | | | | | This change was made in order to allow things produced with Odin and using Odin's core library, to not require the LICENSE to also be distributed alongside the binary form.
* | Fix docs on int*_maxNicknEma2025-11-041-4/+4
| |
* | Cleanup ease_inversethetarnav2025-11-011-29/+31
| |
* | Add ease inverse proceduresthetarnav2025-11-013-208/+459
| |
* | Add half support to all proc groups and add ashalf proc groupNick Driscoll2025-10-282-2/+759
| |
* | Add all half scalar, vector, and matrix typesNick Driscoll2025-10-281-0/+25
|/
* core:math/bits: Finish docs, add `bitfield_extract` + `bitfield_insert` test.Jeroen van Rijn2025-10-141-34/+886
|
* core:math/bits: Add docs + tests for `rotate_left*` and `log2`Jeroen van Rijn2025-10-141-10/+169
|
* Link doc lines to source specifications.Jeroen van Rijn2025-10-101-2/+2
|
* Further overhaul of package line comments.Jeroen van Rijn2025-10-0912-17/+11
|
* Package lines for `core:math` and more.Jeroen van Rijn2025-10-0922-42/+38
|
* Fix #5764gingerBill2025-10-071-1/+6
|
* Fix srgb <-> linear rgb conversion functions in `core:math/linalg` and add ↵Franz Hoeltermann2025-10-021-60/+75
| | | | implementations for vector3
* Change the way math/big constants are initializedJeroen van Rijn2025-09-102-20/+12
|
* remove private _random_u64 and move it's functionality into public uint64Xotchkass2025-08-141-19/+16
|
* use runtime.random_generator_read_bytes in read procedure instead of filling ↵Xotchkass2025-08-141-12/+2
| | | | it manually.
* Remove unused importgingerBill2025-08-081-1/+0
|
* Require `@(init)` and `@(fini)` to be `proc "contextless" ()`gingerBill2025-08-082-12/+15
|
* Fix memory leak in `internal_rat_norm`blob18072025-06-231-0/+2
|
* Turn `core:math/bìg` tests into regular `core:testing` tests.Jeroen van Rijn2025-06-112-3/+3
| | | | | | `core:math/big` has been verified against Python's big integer implementation long enough. Turn it into a regular regression test using the `core:testing` framework, testing against a generated corpus of test vectors.
* Add initial tests for big rationalsJeroen van Rijn2025-06-101-3/+2
|
* Move negation in `internal_rat_to_float` to end of procedureFeoramund2025-06-101-3/+3
| | | | | | | This should cause a compiler error, due to the assignment to a named return value in a deferred block. Fixes #4565
* Deprecate old @(deprecated) things.Jeroen van Rijn2025-06-061-1/+1
|
* Add deprecation warnings for `strconv.append_*`Feoramund2025-06-051-0/+5
|
* Rename `fixed.append` to `fixed.write` too, for good measureFeoramund2025-06-051-2/+2
|
* Clarify `strconv.append_*` to `strconv.write_*`Feoramund2025-06-051-3/+3
|
* Fix rand.int_max commentJeroen van Rijn2025-05-281-1/+1
|
* Fix a range check in int_atoi in core:math/big.Barinzaya2025-05-241-1/+1
| | | | | | | The check seems to have been assuming that rune comparisons are unsigned, but they're signed. This was causing an assertion failure for certain input characters (anything with an ASCII value less than '+'/43).
* Fix float64_range exampleJeroen van Rijn2025-04-211-2/+2
|
* Get rid of duplicate `math.signbit` in favor of `math.sign_bit`Jeroen van Rijn2025-04-152-27/+1
|
* Fixed math.nextafter procs skipping from 0 to 1.Barinzaya2025-04-071-3/+3
|
* Fix broken examples in documentation tester.Jeroen van Rijn2025-04-051-1/+1
| | | | | | | | | No more: ``` We could not find the procedure "pkg_foo_example :: proc()" needed to test the example created for "pkg.foo" The following procedures were found: bar() ```
* Add `@(require_results)` to random generatorgingerBill2025-02-241-1/+0
|
* fix typo in float32_range doc stringColter2025-01-291-1/+1
|
* Fix 2x2 matrix inverses in specific.odinprescientmoon2025-01-231-6/+6
|
* math/rand: add @(require_results) to createLaytan Laats2025-01-181-0/+1
|
* Merge pull request #4633 from spahnke/fix-matrix-adjugategingerBill2025-01-063-54/+198
|\ | | | | Fix matrix adjugate
| * Rename adjugate to cofactor to keep existing usages for inverse and ↵Sebastian Pahnke2024-12-283-54/+198
| | | | | | | | determinant correct and add new adjugate procedures
* | General clean up of codegingerBill2025-01-011-24/+0
|/
* Merge pull request #4589 from Pariatech/add-trunc-to-linalg-glslgingerBill2024-12-182-0/+18
|\ | | | | Add trunc to glsl linalg
| * add trunc to glsl linalgGabriel Pariat2024-12-172-0/+18
| |
* | Add `linalg.clamp_length(vector, max_length) -> clamped_vector`Bazzagibbs2024-12-021-0/+12
|/
* Fix binomial functionEvan Martinez2024-11-281-1/+1
|
* Fix typo in Quaternion dot productDudejoe8702024-11-171-3/+3
|
* Minor formatting changegingerBill2024-11-051-6/+6
|
* math/rand: `choice_bit_set` return `not_empty` -> `ok`Laytan2024-10-281-3/+3
|
* math/rand: add `choice_bit_set`Laytan Laats2024-10-261-0/+49
|
* math/rand: support non-contiguous enums in choice_enumLaytan Laats2024-10-251-15/+15
|
* Merge pull request #4203 from karl-zylinski/file-tags-without-commentsgingerBill2024-09-194-4/+4
|\ | | | | Make tags use #+ syntax instead of //+