{"id":16613024,"url":"https://github.com/craftspider/numeric","last_synced_at":"2025-07-30T16:18:05.314Z","repository":{"id":112386569,"uuid":"524481206","full_name":"CraftSpider/numeric","owner":"CraftSpider","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-09T03:50:36.000Z","size":279,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-10T20:43:29.142Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CraftSpider.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-13T18:44:39.000Z","updated_at":"2025-02-09T03:50:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"ed4466ea-c5b9-44e2-b4c4-03ebcdc23b8a","html_url":"https://github.com/CraftSpider/numeric","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CraftSpider/numeric","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CraftSpider%2Fnumeric","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CraftSpider%2Fnumeric/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CraftSpider%2Fnumeric/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CraftSpider%2Fnumeric/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CraftSpider","download_url":"https://codeload.github.com/CraftSpider/numeric/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CraftSpider%2Fnumeric/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267898121,"owners_count":24162770,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T01:45:46.639Z","updated_at":"2025-07-30T16:18:05.286Z","avatar_url":"https://github.com/CraftSpider.png","language":"Rust","readme":"# Numeric\n\nThe `numeric` project is a mathematical framework for Rust. It contains math traits,\nimplementations of number types such as big integers and fixed-point values, matrix and\nvector types, and more. It aims to be an efficient, well-designed, and comprehensive\ntoolbox for many kinds of mathematical work in Rust.\n\n## Features\n\n- Extended integer types\n  - `U\u003cN\u003e` - N-byte unsigned integer\n  - `I\u003cN\u003e` - N-byte signed integer\n  - `BigInt` - Unbounded signed integer\n- Extended real-valued types\n  - `F\u003cN\u003e` - N-byte floating point value\n  - `P\u003cN\u003e` - N-byte posit value\n  - `Fixed\u003cT, N\u003e` - N-**bit** fixed point value stored as integer `T`\n  - `Rat\u003cT\u003e` - Real value number stored as integer `T / T`\n- Compounds, Matrices, and more\n  - All `T` represent a numeric type of minimal bounds to be useful.\n  - `Vec\u003cT, N\u003e` - N long vector\n  - `Matrix\u003cT, N, M\u003e` - NxM matrix\n  - `Complex\u003cT\u003e` - Imaginary value\n  - `Rotor\u003cT, N\u003e` - N-dimension rotor\n  - `BiVector\u003cT, N\u003e` - N-dimension bivector\n\n## FAQ\n\n### What about `num_traits`?\n\n`numeric`'s traits crate is very similar in some ways to `num_traits`, which may lead one\nto wonder why not just use that crate. In short, while `num_traits` aims to be good for\nworking with generic numeric types, it falls short of what `numeric` requires. It has\noverly strict bounds on `Real` making it unsuitable for our use, and is missing many of\nthe custom operator traits we require. While the first may someday in the far future be\nfixed by a breaking change, the latter issue is unlikely to ever change as it's not in\nscope for `num_traits`.\n\nAs such, the decision was made to work entirely through our own, more tailored base traits.\nOn the other hand, support for `num_traits` is a desirable goal under a feature gate\neventually, to allow other crates that use it to support `numeric` types transparently.\n\n## Design Thoughts\n\n### Ideas\n\n- Replace TaggedOffset with a TaggedPtr into the linked list\n- Use fetch_add in interner adder to prevent race conditions\n- Maybe we should change `BigInt` to `IBig` for consistency, and a potential future `UBig`.\n\n### Even More Number Types\n\n- P-adics\n  - How do these get represented? Every useful one is infinite\n  - May be useful to work with truncated representations, as long as they can produce outputs\n\n### Other Math Stuff\n\n- Rotors\n- Quaternions\n- All the math stuff I can imagine\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcraftspider%2Fnumeric","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcraftspider%2Fnumeric","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcraftspider%2Fnumeric/lists"}