Bump sprs to 0.10

This commit is contained in:
2021-03-18 23:27:03 +01:00
parent 550b43b4cd
commit be984fbdac
6 changed files with 14 additions and 12 deletions

View File

@@ -9,7 +9,7 @@ edition = "2018"
sbp = { path = "../sbp", features = ["sparse"] }
ndarray = "0.14.0"
plotters = { version = "0.3.0", default-features = false, features = ["bitmap_gif", "bitmap_backend", "line_series"] }
sprs = { version = "0.9.0", default-features = false }
sprs = { version = "0.10.0", default-features = false }
[dev-dependencies]
arpack = { git = "https://github.com/mulimoen/arpack-rs", branch = "main" }

View File

@@ -204,10 +204,11 @@ fn dual_dirichlet_sparse(v: ArrayView1<Float>, v0: Float, vn: Float) {
let rhs = move |fut: &mut Array1<Float>, prev: &Array1<Float>, _t: Float| {
fut.fill(0.0);
let prev = prev.as_slice().unwrap();
{
let fut = fut.as_slice_mut().unwrap();
sprs::prod::mul_acc_mat_vec_csr(system.view(), prev, fut);
}
let fut = fut.as_slice_mut().unwrap();
sprs::prod::mul_acc_mat_vec_csr(system.view(), prev, fut);
sprs::prod::mul_acc_mat_vec_csr(bc.view(), &[v0, vn][..], fut);
};