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

Function view_scalar_generic

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

Source from the content-addressed store, hash-verified

141}
142
143pub(crate) fn view_scalar_generic<'py, R: Element>(
144 values: &[R],
145 container: Bound<'py, PyAny>,
146) -> PyResult<Bound<'py, PyUntypedArray>> {
147 view_generic(values, &[values.len()], container)
148}
149
150pub(crate) fn view_vec_generic<'py, R: Real + Element, const D: usize>(
151 values: &[SVector<R, D>],

Callers 2

viewMethod · 0.85
dataMethod · 0.85

Calls 2

view_genericFunction · 0.85
lenMethod · 0.45

Tested by

no test coverage detected