Mikhail Hogrefe
Mikhail Hogrefe
I didn't know about this! It's a cool idea. Go for it, and let me know if you need help.
You should be able to use `TryFrom`: https://docs.rs/malachite-nz/latest/malachite_nz/natural/struct.Natural.html#impl-TryFrom%3C%26Natural%3E-for-u64. But the purpose of `malachite_base` is to support the other Malachite crates, so in general there will be many dependencies on it.
Sorry for the late reply. I'm not sure what's going on here, and since it works locally I'm not sure how to test changes. I just released v0.4.6 and tried...
I fixed this in 0.4.7 by adding an embed-doc-images dependency to the top-level crate. The memory-layout image for `Natural` fails to render (compare [here](https://docs.rs/malachite/latest/malachite/struct.Natural.html) and [here](https://docs.rs/malachite-nz/latest/malachite_nz/natural/struct.Natural.html)), but that's a relatively...
If you want to do an operation like that, you can convert the primitive value to a `Rational`. Converting a primitive integer to a `Rational` using `Rational::from` is very cheap;...
I see. If I picked a single primitive integer type, say `i32`, and implemented all operations between `Natural`, `Integer`, and `Rational` and that type, that would allow you to use...
Sorry for the delayed response. I need to think about the best way to document this. One thing I would recommend is to use `seed.fork("some-secret")` rather than using `Seed::next`. The...
There isn't currently prime testing functionality in Malachite. I'm going to implement it in the future by translating FLINT's primality testing code, including everything in [this directory](https://github.com/flintlib/flint/tree/main/src/aprcl), as well as...
Thanks for catching this. I've pushed a fix, which also fixes the analogous links in malachite-q and malachite-float. The link on crates.io will be fixed the next time I release...
I've also just written a script that finds all links in Malachite's documentation and checks whether they work. Looks like everything else works.