Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(math): Replace math library - malachite -> dashu #542

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pallas-math/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ authors = ["Andrew Westberg <[email protected]>"]
exclude = ["tests/data/*"]

[dependencies]
malachite = "0.4.16"
malachite-base = "0.4.16"
dashu-int = "0.4.1"
dashu-base = "0.4.1"
regex = "1.10.5"
thiserror = "1.0.61"

Expand Down
2 changes: 1 addition & 1 deletion pallas-math/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pub mod math;
pub mod math_malachite;
pub mod math_dashu;
4 changes: 2 additions & 2 deletions pallas-math/src/math.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use std::ops::{Div, Mul, Neg, Sub};
use std::sync::LazyLock;
use thiserror::Error;

pub type FixedDecimal = crate::math_malachite::Decimal;
pub type FixedDecimal = crate::math_dashu::Decimal;

pub static ZERO: LazyLock<FixedDecimal> = LazyLock::new(|| FixedDecimal::from(0u64));
pub static MINUS_ONE: LazyLock<FixedDecimal> = LazyLock::new(|| FixedDecimal::from(-1i64));
Expand Down Expand Up @@ -95,7 +95,7 @@ pub struct ExpCmpOrdering {
#[cfg(test)]
mod tests {
use super::*;
use malachite_base::num::arithmetic::traits::Abs;
use dashu_base::Abs;
use proptest::prelude::Strategy;
use proptest::proptest;
use std::fs::File;
Expand Down
Loading
Loading