dashu icon indicating copy to clipboard operation
dashu copied to clipboard

A library set of arbitrary precision numbers implemented in Rust.

Results 14 dashu issues
Sort by recently updated
recently updated
newest added

- For `UBig` / `IBig` - [ ] ~~Implement `{:x?}` and `{:X?}` formatting~~ (Wait until the format flags are exposed through public API) - For `FBig` - [x] Implement `{:x}`...

- [ ] Add an icon (probably a tree-like icon due to the name, maybe ask [NUMI](https://github.com/numi-hq/open-design) for help) - [x] Add badges - [ ] Add multi-lingual README ([ref](https://github.com/o2sh/onefetch))

The documentation for dashu_float says that operations that produce NaN will panic. I'd like to be able to check for such conditions before performing those operations, so I can catch...

- [x] Support `rand` for `FBig` and `RBig` - [x] Support `num-traits` for `FBig` and `RBig` - [x] `Zero`, `One`, `FromPrimitive`, `ToPrimitive`, `Num` - [x] `Euclid`, `Pow` - [x] Support...

Might also test the performance of NTT multiplications (e.g. use concrete-ntt)

- Add `from_le_bytes` and `from_be_bytes` for IBig, equivalent to `num_bigint::BigInt::{from_signed_bytes_le, from_signed_bytes_be}` - Add `from_digits` and `to_digits` for IBig, somewhat equivalent to `num_bigint::BigInt::{from_radix_le, from_radix_be}`, but it support radix in a whole...

Prerequisite: - [ ] Implement trigonometry functions for `FBig` (only for base 2 is enough as we are not planning to support base 10 complex number)

大数你好, This change cuts the formatting time by a lot for large numbers when using a power-of-two radix. It's kinda ugly, though, so I'll try to find a better solution...

Refactor `Memory` to avoid dealing with manual allocations, raw pointers and memory layouts. Now it uses a `Vec` (with length zero and desired capacity) and `Vec::spare_capacity_mut` to access the allocated...