def sdm_from_vector(vec, O, K, **opts):
 (dics, gens) = parallel_dict_from_expr(sympify(vec), **opts)
 dic = {}
 for (i, d) in enumerate(dics):
  for (k, v) in d.items():
   dic[((i,) + k)] = K.convert(v)
 return sdm_from_dict(dic, O)

def sdm_from_vector ( vec , O , K , ** opts ) : ( dics , gens ) = parallel_dict_from_expr ( sympify ( vec ) , ** opts ) dic = { } for ( i , d ) in enumerate ( dics ) : for ( k , v ) in d . items ( ) : dic [ ( ( i , ) + k ) ] = K . convert ( v ) return sdm_from_dict ( dic , O )
create an sdm from an iterable of expressions .