def pmt_from_vector(p): v = pmt.make_vector(len(p), pmt.PMT_NIL) for i, elem in enumerate(p): pmt.vector_set(v, i, python_to_pmt(elem)) return v
def pmt_from_vector(p): v = pmt.make_vector(len(p), pmt.PMT_NIL) for i, elem in enumerate(p): pmt.vector_set(v, i, python_to_pmt(elem)) return v