(
py: Python<'py>,
x: PyReadonlyArray2<'py, f64>,
)
| 6 | |
| 7 | #[pyfunction] |
| 8 | fn inv<'py>( |
| 9 | py: Python<'py>, |
| 10 | x: PyReadonlyArray2<'py, f64>, |
| 11 | ) -> PyResult<Bound<'py, PyArray2<f64>>> { |
| 12 | let x = x.as_array(); |
| 13 | let y = x |
| 14 | .inv() |
| 15 | .map_err(|e| PyRuntimeError::new_err(e.to_string()))?; |
| 16 | Ok(y.into_pyarray(py)) |
| 17 | } |
| 18 | } |
nothing calls this directly
no test coverage detected