math
math copied to clipboard
Library providing mathematical basics in Rust. The library is based on FLINT.
**Description** This PR implements... - [x] the randomized rounding algorithm to integers for `Q` and `MatQ`. **Testing** - [x] I added basic working examples (possibly in doc-comment) - [x] I...
**Description** This PR implements... - [x] continuous Gaussian sampling for rational numbers **Testing** - [x] I added basic working examples (possibly in doc-comment) - [x] I triggered all possible errors...
**Description** This PR implements the Cholesky decomposition as a placeholder until we can use the function directly in FLINT through the FFI (not yet supported by FFI). This implementation gives...
**Description** This PR implements... - [x] continuous Gaussian sampling for `MatQ`. Here, each entry is sampled using `Q::sample_gauss`. **Testing** - [x] I added basic working examples (possibly in doc-comment) -...
**Description** This PR implements... - [x] the functionality to round MatQ's entrywise - [x] floor - [x] ceil - [x] round **Testing** - [x] I added basic working examples (possibly...
Why does this work? Why is it possible to init a `PolyOverZ` with a string that contains `mod`? _Originally posted by @MoogSven in https://github.com/qfall/math/pull/255#discussion_r1211919509_
**Description** This PR refactors the documentation of the math crate. **Testing** **Checklist:** - [x] I have performed a self-review of my own code - [x] The code provides good readability...
**Description** This PR implements... - [x] from_utf8 - [x] to_utf8 for `Zq`. **Testing** - [x] I added basic working examples (possibly in doc-comment) - [x] I triggered all possible errors...
**Description** Since we currently can not get a coefficient from a ModulusPolyRingZq: This PR implements... - [x] GetCoefficient for ModulusPolyRingZq. **Testing** - [x] I added basic working examples (possibly in...
**Description** This PR implements... - [x] padding for UTF8-encoded strings to ensure that no problems happen along the way of decoding (including major progress for MatZq already) - [x] from_utf8...