pub(crate) fn extract_matrix_f64( data: &Bound<'_, PyAny>, name: &str, ) -> PyResult<(Vec<f64>, usize, usize)>