MCPcopy Create free account
hub / github.com/BasisResearch/lean.py / lean_alloc_array

Function lean_alloc_array

lean_py/_runtime.py:564–570  ·  view source on GitHub ↗
(self, size, capacity)

Source from the content-addressed store, hash-verified

562 return fn(tag, num_objs, scalar_sz)
563
564 def lean_alloc_array(self, size, capacity):
565 fn = self._find_leanpy_helper("leanpy_alloc_array")
566 if fn is None:
567 raise RuntimeError("leanpy_alloc_array not found — leanpy_native not linked")
568 fn.argtypes = [c_size_t, c_size_t]
569 fn.restype = LeanObjectPtr
570 return fn(size, capacity)
571
572 def lean_array_set_core(self, o, i, v):
573 arr_cls = structs.get("lean_array_object")

Callers 2

leanpy_alloc_arrayFunction · 0.85
leancallable_callFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected