Upgrade dependencies
This commit is contained in:
@@ -5,15 +5,13 @@ authors = ["Magnus Ulimoen <magnus@ulimoen.dev>"]
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
ndarray = { version = "0.15.0", features = ["approx"] }
|
||||
approx = "0.4.0"
|
||||
sprs = { version = "0.10.0", optional = true, default-features = false }
|
||||
serde = { version = "1.0.115", optional = true, default-features = false, features = ["derive"] }
|
||||
num-traits = "0.2.14"
|
||||
ndarray = { version = "0.15.4", features = ["approx"] }
|
||||
approx = "0.5.1"
|
||||
sprs = { version = "0.11.0", optional = true, default-features = false }
|
||||
serde = { version = "1.0.138", optional = true, default-features = false, features = ["derive"] }
|
||||
num-traits = "0.2.15"
|
||||
float = { path = "../utils/float" }
|
||||
constmatrix = { path = "../utils/constmatrix" }
|
||||
core_simd = { git = "https://github.com/rust-lang/portable-simd" }
|
||||
std_float = { git = "https://github.com/rust-lang/portable-simd" }
|
||||
|
||||
[features]
|
||||
# Use f32 as precision, default is f64
|
||||
|
||||
@@ -2,7 +2,7 @@ use super::*;
|
||||
use ndarray::s;
|
||||
use num_traits::Zero;
|
||||
use std::convert::TryInto;
|
||||
use std_float::StdFloat;
|
||||
use std::simd::StdFloat;
|
||||
|
||||
pub(crate) use constmatrix::{ColVector, Matrix, RowVector};
|
||||
|
||||
@@ -395,9 +395,9 @@ pub(crate) fn diff_op_2d_sliceable_y_simd<const M: usize, const N: usize, const
|
||||
let idx = 1.0 / dx;
|
||||
|
||||
#[cfg(not(feature = "f32"))]
|
||||
type SimdT = core_simd::f64x8;
|
||||
type SimdT = std::simd::f64x8;
|
||||
#[cfg(feature = "f32")]
|
||||
type SimdT = core_simd::f32x16;
|
||||
type SimdT = std::simd::f32x16;
|
||||
|
||||
// How many elements that can be simdified
|
||||
let simdified = SimdT::LANES * (ny / SimdT::LANES);
|
||||
|
||||
Reference in New Issue
Block a user