Skip to content

Commit

Permalink
prepare for release
Browse files Browse the repository at this point in the history
  • Loading branch information
mhogrefe committed Jun 13, 2024
1 parent 5f019ad commit 7b1fb14
Show file tree
Hide file tree
Showing 16 changed files with 48 additions and 56 deletions.
28 changes: 14 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ members = ['malachite', 'malachite-base', 'malachite-float', 'malachite-nz', 'ma
resolver = "2"

[workspace.dependencies]
malachite-base = { version = "0.4.12", path = 'malachite-base' }
malachite-nz = { version = "0.4.12", path = 'malachite-nz', default_features = false }
malachite-q = { version = "0.4.12", path = 'malachite-q' }
malachite-float = { version = "0.4.12", path = 'malachite-float' }
malachite-base = { version = "0.4.13", path = 'malachite-base' }
malachite-nz = { version = "0.4.13", path = 'malachite-nz', default_features = false }
malachite-q = { version = "0.4.13", path = 'malachite-q' }
malachite-float = { version = "0.4.13", path = 'malachite-float' }

[profile.release]
lto = "fat"
Expand Down
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ Malachite uses `no_std`, unless the `random`, `test_build`, or `bin_build` featu
To use Malachite, add the following to your project's `Cargo.toml` file:
```yaml
[dependencies.malachite]
version = "0.4.12"
version = "0.4.13"
```

By default, all of Malachite's features are included, but you can opt out of some of them. For
example, if you want to use `Natural` and `Integer` but not `Rational`, you can instead use
```yaml
[dependencies.malachite]
version = "0.4.12"
version = "0.4.13"
default-features = false
features = [ "naturals_and_integers" ]
```
Expand Down
2 changes: 1 addition & 1 deletion malachite-base/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "malachite-base"
version = "0.4.12"
version = "0.4.13"
authors = ["Mikhail Hogrefe <[email protected]>"]
rust-version = "1.61.0"
edition = "2021"
Expand Down
4 changes: 2 additions & 2 deletions malachite-base/src/num/basic/floats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -556,8 +556,8 @@ pub trait PrimitiveFloat:
/// Constant time and additional memory.
///
/// # Panics
/// Panics if `exponent` is less than [`MIN_EXPONENT`](PrimitiveFloat::MIN_EXPONENT) or greater than
/// [`MAX_EXPONENT`](PrimitiveFloat::MAX_EXPONENT).
/// Panics if `exponent` is less than [`MIN_EXPONENT`](PrimitiveFloat::MIN_EXPONENT) or greater
/// than [`MAX_EXPONENT`](PrimitiveFloat::MAX_EXPONENT).
///
/// # Examples
/// ```
Expand Down
5 changes: 2 additions & 3 deletions malachite-base/src/num/random/geometric.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1001,9 +1001,8 @@ pub fn geometric_random_unsigned_range<T: PrimitiveUnsigned>(
/// where $T$ is time, $M$ is additional memory, and $n$ = `um_numerator + um_denominator`.
///
/// # Panics
/// Panics if $a > b$, if `um_numerator` or `um_denominator` are zero, if their ratio is less
/// than or equal to $a$, or if they are too large and manipulating them leads to arithmetic
/// overflow.
/// Panics if $a > b$, if `um_numerator` or `um_denominator` are zero, if their ratio is less than
/// or equal to $a$, or if they are too large and manipulating them leads to arithmetic overflow.
///
/// # Examples
/// ```
Expand Down
6 changes: 3 additions & 3 deletions malachite-criterion-bench/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[package]
name = "malachite-criterion-bench"
version = "0.4.12"
version = "0.4.13"
authors = ["Mikhail Hogrefe <[email protected]>"]
autobenches = false
edition = "2021"

[dependencies]
malachite-base = { version = "0.4.12", path = "../malachite-base" }
malachite-nz = { version = "0.4.12", default_features = false, path = "../malachite-nz" }
malachite-base = { version = "0.4.13" }
malachite-nz = { version = "0.4.13", default_features = false }
num = "0.4.1"
rug = { version = "1.21.0", default-features = false, features = ["integer", "serde"] }

Expand Down
8 changes: 4 additions & 4 deletions malachite-float/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "malachite-float"
version = "0.4.12"
version = "0.4.13"
authors = ["Mikhail Hogrefe <[email protected]>"]
rust-version = "1.61.0"
edition = "2021"
Expand All @@ -22,9 +22,9 @@ path = "src/bin.rs"

[dependencies]
itertools = { version = "0.11.0", default-features = false, features = ["use_alloc"] }
malachite-base = { version = "0.4.12", default-features = false, path = "../malachite-base" }
malachite-nz = { version = "0.4.12", default-features = false, features = ["float_helpers"], path = "../malachite-nz" }
malachite-q = { version = "0.4.12", default-features = false, path = "../malachite-q" }
malachite-base = { version = "0.4.13", default-features = false }
malachite-nz = { version = "0.4.13", default-features = false, features = ["float_helpers"] }
malachite-q = { version = "0.4.13", default-features = false }
serde = { version = "1.0.188", optional = true, default_features = false, features = ["alloc", "derive"] }

serde_json = { version = "1.0.105", optional = true }
Expand Down
2 changes: 0 additions & 2 deletions malachite-float/tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,11 @@ pub mod arithmetic {
pub mod abs;
pub mod add;
pub mod is_power_of_2;
pub mod mul;
pub mod neg;
pub mod power_of_2;
pub mod shl;
pub mod shr;
pub mod sign;
pub mod square;
pub mod sub;
}

Expand Down
4 changes: 2 additions & 2 deletions malachite-nz/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "malachite-nz"
version = "0.4.12"
version = "0.4.13"
authors = ["Mikhail Hogrefe <[email protected]>"]
rust-version = "1.61.0"
edition = "2021"
Expand All @@ -23,7 +23,7 @@ path = "src/bin.rs"
[dependencies]
itertools = { version = "0.11.0", default-features = false, features = ["use_alloc"] }
libm = { version = "0.2.8", default-features = false }
malachite-base = { version = "0.4.12", default-features = false, path = "../malachite-base" }
malachite-base = { version = "0.4.13", default-features = false }
serde = { version = "1.0.188", optional = true, default-features = false, features = ["alloc", "derive"] }

indoc = { version = "2.0.4", optional = true}
Expand Down
5 changes: 0 additions & 5 deletions malachite-nz/src/natural/arithmetic/add_mul.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,19 +74,14 @@ pub_crate_test! {limbs_slice_add_mul_limb_same_length_in_place_left(
let len = xs.len();
assert_eq!(ys.len(), len);
let mut carry = 0;

for (x, &y) in xs.iter_mut().zip(ys.iter()) {
let (product_hi, mut product_lo) = XMulYToZZ::x_mul_y_to_zz(y, z);

product_lo = (*x).wrapping_add(product_lo);
let mut add_carry = Limb::from(*x > product_lo);

*x = product_lo.wrapping_add(carry);
add_carry += Limb::from(product_lo > *x);

carry = product_hi.wrapping_add(add_carry);
}

carry
}}

Expand Down
2 changes: 1 addition & 1 deletion malachite-nz/src/natural/arithmetic/float_extras.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ pub(crate) fn round_helper_even(

// This is MPFR_RNDRAW from mpfr-impl.h, MPFR 4.2.0, returning `inexact` and a `bool` signifying
// whether the returned exponent should be incremented.
pub(crate) fn round_helper_raw(
pub fn round_helper_raw(
out: &mut [Limb],
out_prec: u64,
xs: &[Limb],
Expand Down
2 changes: 0 additions & 2 deletions malachite-nz/src/natural/arithmetic/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ pub mod float_add;
#[cfg(feature = "float_helpers")]
pub mod float_extras;
#[cfg(feature = "float_helpers")]
pub mod float_mul;
#[cfg(feature = "float_helpers")]
pub mod float_sub;
/// Implementations of [`Gcd`](malachite_base::num::arithmetic::traits::Gcd) and
/// [`GcdAssign`](malachite_base::num::arithmetic::traits::GcdAssign), traits for computing the GCD
Expand Down
8 changes: 5 additions & 3 deletions malachite-nz/src/natural/arithmetic/mul/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -484,13 +484,15 @@ pub_crate_test! {limbs_mul_greater_to_out_basecase(out: &mut [Limb], xs: &[Limb]
let window_size = xs_len + 1;
let mut i = 1;
let max = ys_len - 1;

while i < max {
let (out_last, out_init) = out[i..=i + window_size].split_last_mut().unwrap();
*out_last = limbs_slice_add_mul_two_limbs_matching_length_in_place_left(out_init, xs, [ys[i], ys[i + 1]]);
*out_last = limbs_slice_add_mul_two_limbs_matching_length_in_place_left(
out_init,
xs,
[ys[i], ys[i + 1]],
);
i += 2;
}

if i <= max {
let (out_last, out_init) = out[i..i + window_size].split_last_mut().unwrap();
*out_last = limbs_slice_add_mul_limb_same_length_in_place_left(out_init, xs, ys[i]);
Expand Down
6 changes: 3 additions & 3 deletions malachite-q/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "malachite-q"
version = "0.4.12"
version = "0.4.13"
authors = ["Mikhail Hogrefe <[email protected]>"]
rust-version = "1.61.0"
edition = "2021"
Expand All @@ -22,8 +22,8 @@ path = "src/bin.rs"

[dependencies]
itertools = { version = "0.11.0", default-features = false, features = ["use_alloc"] }
malachite-base = { version = "0.4.12", default-features = false, path = "../malachite-base" }
malachite-nz = { version = "0.4.12", default-features = false, path = "../malachite-nz" }
malachite-base = { version = "0.4.13", default-features = false }
malachite-nz = { version = "0.4.13", default-features = false }
serde = { version = "1.0.188", optional = true, default-features = false, features = ["alloc", "derive"] }

serde_json = { version = "1.0.105", optional = true }
Expand Down
10 changes: 5 additions & 5 deletions malachite/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "malachite"
version = "0.4.12"
version = "0.4.13"
authors = ["Mikhail Hogrefe <[email protected]>"]
rust-version = "1.61.0"
edition = "2021"
Expand All @@ -13,10 +13,10 @@ keywords = ["mathematics", "math", "numerics", "bignum"]
categories = ["mathematics"]

[dependencies]
malachite-base = { version = "0.4.12", default_features = false, path = "../malachite-base" }
malachite-nz = { version = "0.4.12", default_features = false, optional = true, path = "../malachite-nz" }
malachite-q = { version = "0.4.12", default_features = false, optional = true, path = "../malachite-q" }
malachite-float = { version = "0.4.12", default_features = false, optional = true, path = "../malachite-float" }
malachite-base = { version = "0.4.13", default_features = false }
malachite-nz = { version = "0.4.13", default_features = false, optional = true }
malachite-q = { version = "0.4.13", default_features = false, optional = true }
malachite-float = { version = "0.4.13", default_features = false, optional = true }
serde = { version = "1.0.188", optional = true, features = ["derive"] }
embed-doc-image = { version = "0.1.4", optional = true }

Expand Down

0 comments on commit 7b1fb14

Please sign in to comment.