#NEWLINE# def list2numpy( l , dtype = object ) : #NEWLINE# #INDENT# 'Converts python list of SymPy expressions to a NumPy array.\n\n    See Also\n    ========\n\n    matrix2numpy\n    ' #NEWLINE# from numpy import empty #NEWLINE# a = empty ( len ( l ) , dtype ) #NEWLINE# for ( i , s ) in enumerate ( l ) : #NEWLINE# #INDENT# a [ l ] = s #NEWLINE# #UNINDENT# return a