MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/splashsurf / view_vec_generic

Function view_vec_generic

pysplashsurf/src/utils.rs:150–156  ·  view source on GitHub ↗
(
    values: &[SVector<R, D>],
    container: Bound<'py, PyAny>,
)

Source from the content-addressed store, hash-verified

148}
149
150pub(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}

Callers 2

verticesMethod · 0.85
dataMethod · 0.85

Calls 2

view_genericFunction · 0.85
lenMethod · 0.45

Tested by

no test coverage detected