(bounds: Option<Vec<(usize, f64, f64)>>)
| 4 | use crate::helpers::{matrix_from_rows, to_py_err}; |
| 5 | |
| 6 | fn parse_bounds(bounds: Option<Vec<(usize, f64, f64)>>) -> Option<HashMap<usize, (f64, f64)>> { |
| 7 | bounds.map(|v| v.into_iter().map(|(i, lo, hi)| (i, (lo, hi))).collect()) |
| 8 | } |
| 9 | |
| 10 | #[pyfunction(name = "allocate_inverse_variance")] |
| 11 | fn portfolio_allocate_inverse_variance( |
no outgoing calls
no test coverage detected