Beispiel #1
0
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
Beispiel #2
0
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