Use array impl instead of vec

This commit is contained in:
2021-10-27 11:33:54 +02:00
parent 1eea1bfb71
commit 71b795d9ed
5 changed files with 7 additions and 8 deletions

View File

@@ -11,7 +11,7 @@ fn kickscore_basic() {
let k_tom = ks::kernel::Exponential::new(1.0, 1.0);
let k_jerry: Vec<Box<dyn ks::Kernel>> = vec![
let k_jerry: [Box<dyn ks::Kernel>; 2] = [
Box::new(ks::kernel::Constant::new(1.0)),
Box::new(ks::kernel::Matern52::new(0.5, 1.0)),
];