(
values: &[SVector<R, D>],
container: Bound<'py, PyAny>,
)
| 148 | } |
| 149 | |
| 150 | pub(crate) fn view_vec_generic<'py, R: Real + Element, const D: usize>( |
| 151 | values: &[SVector<R, D>], |
| 152 | container: Bound<'py, PyAny>, |
| 153 | ) -> PyResult<Bound<'py, PyUntypedArray>> { |
| 154 | let coordinates: &[R] = bytemuck::cast_slice(values); |
| 155 | view_generic(coordinates, &[values.len(), D], container) |
| 156 | } |
no test coverage detected