Skip to content

Commit

Permalink
chore: update nalgebra feature flag name
Browse files Browse the repository at this point in the history
also handle a clippy error in docstring
  • Loading branch information
YeungOnion committed Aug 3, 2024
1 parent 3179140 commit b37b081
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ path = "src/lib.rs"

[dependencies]
rand = "0.8"
nalgebra = { version = "0.32", default_features = false, features = ["rand", "std"] }
nalgebra = { version = "0.32", default-features = false, features = ["rand", "std"] }
approx = "0.5.0"
num-traits = "0.2.14"

[dev-dependencies]
criterion = "0.3.3"
anyhow = "1.0"
nalgebra = { version = "0.32", default_features = false, features = ["macros"] }
nalgebra = { version = "0.32", default-features = false, features = ["macros"] }
1 change: 1 addition & 0 deletions src/distribution/internal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ pub fn is_valid_multinomial(arr: &[f64], incl_zero: bool) -> bool {
/// Evaluates to `None` if
/// - provided interval has lower bound greater than upper bound
/// - function found not semi-monotone on the provided interval containing `z`
///
/// Evaluates to `Some(k)`, where `k` satisfies the search criteria
pub fn integral_bisection_search<K: Num + Clone, T: Num + PartialOrd>(
f: impl Fn(&K) -> T,
Expand Down

0 comments on commit b37b081

Please sign in to comment.