()
| 313 | assert_eq!(cleaned.len(), prices.data.ncols()); |
| 314 | assert_weights_basic(&cleaned, true); |
| 315 | } |
| 316 | } |
| 317 | |
| 318 | fn two_assets() -> (DMatrix<f64>, DMatrix<f64>) { |
| 319 | let mu = DMatrix::from_column_slice(2, 1, &[0.10, 0.05]); |
| 320 | let cov = DMatrix::from_row_slice(2, 2, &[0.04, 0.0, 0.0, 0.01]); |
| 321 | (mu, cov) |
| 322 | } |