(
py: Python<'py>,
x: PyReadonlyArray2<'py, f64>,
y: PyReadonlyArray1<'py, f64>,
)
| 9 | |
| 10 | #[pyfunction] |
| 11 | fn rows_dot<'py>( |
| 12 | py: Python<'py>, |
| 13 | x: PyReadonlyArray2<'py, f64>, |
| 14 | y: PyReadonlyArray1<'py, f64>, |
| 15 | ) -> Bound<'py, PyArray1<f64>> { |
| 16 | let x = x.as_array(); |
| 17 | let y = y.as_array(); |
| 18 | let z = Zip::from(x.rows()).par_map_collect(|row| row.dot(&y)); |
| 19 | z.into_pyarray(py) |
| 20 | } |
| 21 | } |
nothing calls this directly
no test coverage detected