From 23d25be4bd6e5dcc0550c4f59a0055ba84ce3025 Mon Sep 17 00:00:00 2001 From: meliurwen Date: Tue, 20 Sep 2022 11:16:40 +0200 Subject: [PATCH] Replaced `approx` with `approx-0_5` --- Cargo.toml | 4 ++-- tests/parameter_learning.rs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 553e294..547a8b8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -ndarray = {version="*", features=["approx"]} +ndarray = {version="*", features=["approx-0_5"]} thiserror = "*" rand = "*" bimap = "*" @@ -15,4 +15,4 @@ statrs = "*" rand_chacha = "*" [dev-dependencies] -approx = "*" +approx = { package = "approx", version = "0.5" } diff --git a/tests/parameter_learning.rs b/tests/parameter_learning.rs index 5de02d7..70f998c 100644 --- a/tests/parameter_learning.rs +++ b/tests/parameter_learning.rs @@ -10,6 +10,7 @@ use reCTBN::tools::*; use utils::*; extern crate approx; +use crate::approx::AbsDiffEq; fn learn_binary_cim(pl: T) { let mut net = CtbnNetwork::new();