Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
kachark committed Mar 31, 2024
2 parents e4fccde + b2db66e commit d149268
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ cxx-build = "1.0"
pyo3 = { version = "0.20", features = ["auto-initialize"] }
numpy = "0.20"
rand = "0.8"
criterion = "0.3"
criterion = { version = "0.4", features = ["html_reports"] }

[features]
default = ["ndarray-linalg-openblas-system"]
Expand Down
3 changes: 3 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
fn main() {
// Temporary workaround to find M1 mac location of homebrew libraries
println!("cargo:rustc-link-search=/opt/homebrew/opt/openblas/lib");

cxx_build::bridge("src/exact/ffi.rs")
.file("src/exact/fast_transport/EMD_wrapper.cpp")
.flag_if_supported("-std=c++14")
Expand Down
2 changes: 1 addition & 1 deletion examples/emd_2D/main.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use ndarray::prelude::*;
use ndarray_stats::QuantileExt;

use rust_optimal_transport as ot;
use ot::prelude::*;
use rust_optimal_transport as ot;

mod plot;

Expand Down
1 change: 0 additions & 1 deletion examples/emd_2D/plot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ pub fn plot_py(

// Start the python interpreter
Python::with_gil(|py| {

// Import matplotlib
let plt = py.import("matplotlib.pyplot")?;

Expand Down
2 changes: 1 addition & 1 deletion examples/sinkhorn_1D/main.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use ndarray::{prelude::*, stack};
use ndarray_stats::QuantileExt;

use rust_optimal_transport as ot;
use ot::prelude::*;
use rust_optimal_transport as ot;

mod plot;

Expand Down
1 change: 0 additions & 1 deletion examples/sinkhorn_1D/plot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ pub fn plot_py(

// Start the python interpreter
Python::with_gil(|py| {

// Import matplotlib
let plt = py.import("matplotlib.pyplot")?;

Expand Down

0 comments on commit d149268

Please sign in to comment.