def list2numpy(l, dtype=object):  # pragma: no cover
    from numpy import empty
    a = empty(len(l), dtype)
    for i, s in enumerate(l):
        a[i] = s
    return a
Converts python list of SymPy expressions to a NumPy array.
dataset/ETHPy150Open sympy/sympy/sympy/matrices/dense.py/list2numpy