MCPcopy Index your code
hub / github.com/RustPython/RustPython / f_contiguous

Method f_contiguous

crates/vm/src/builtins/memory.rs:654–658  ·  view source on GitHub ↗
(&self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

652
653 #[pygetset]
654 fn f_contiguous(&self, vm: &VirtualMachine) -> PyResult<bool> {
655 // TODO: column-major order
656 self.try_not_released(vm)
657 .map(|_| self.desc.ndim() <= 1 && self.desc.is_contiguous())
658 }
659
660 #[pymethod]
661 fn __enter__(zelf: PyRef<Self>, vm: &VirtualMachine) -> PyResult<PyRef<Self>> {

Callers

nothing calls this directly

Calls 4

try_not_releasedMethod · 0.80
is_contiguousMethod · 0.80
mapMethod · 0.45
ndimMethod · 0.45

Tested by

no test coverage detected