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

Function lean_alloc_ctor

lean_py/_runtime.py:556–562  ·  view source on GitHub ↗
(self, tag, num_objs, scalar_sz)

Source from the content-addressed store, hash-verified

554
555 # ----- Allocation primitives (delegated to leanpy_native helpers) -----
556 def lean_alloc_ctor(self, tag, num_objs, scalar_sz):
557 fn = self._find_leanpy_helper("leanpy_alloc_ctor")
558 if fn is None:
559 raise RuntimeError("leanpy_alloc_ctor not found — leanpy_native not linked")
560 fn.argtypes = [c_uint, c_uint, c_uint]
561 fn.restype = LeanObjectPtr
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")

Callers 3

leanpy_alloc_ctorFunction · 0.85
leancallable_callFunction · 0.85
lean_py_to_lean_objFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected