diff --git a/src/svm/kernel/mod.rs b/src/svm/kernel/mod.rs index aff9bee..259dd3b 100644 --- a/src/svm/kernel/mod.rs +++ b/src/svm/kernel/mod.rs @@ -15,7 +15,7 @@ pub use self::{linear::*, poly::*, rbf::*, sigmoid::*}; #[doc(hidden)] pub trait KernelDense where - Self: Sync, + Self: Send + Sync, { fn compute(&self, vectors: &MatrixD, feature: &VectorD, output: &mut [f64]); } @@ -24,7 +24,7 @@ where #[doc(hidden)] pub trait KernelSparse where - Self: Sync, + Self: Send + Sync, { fn compute(&self, vectors: &SparseMatrix, feature: &SparseVector, output: &mut [f64]); }