def Lop(f, wrt, eval_points, consider_constant=None, disconnected_inputs='raise'):
 if (type(eval_points) not in (list, tuple)):
  eval_points = [eval_points]
 using_list = isinstance(wrt, list)
 using_tuple = isinstance(wrt, tuple)
 if (not isinstance(f, (list, tuple))):
  f = [f]
 f = list(f)
 grads = list(eval_points)
 if (not isinstance(wrt, (list, tuple))):
  wrt = [wrt]
 assert (len(f) == len(grads))
 known = OrderedDict(izip(f, grads))
 ret = grad(cost=None, known_grads=known, consider_constant=consider_constant, wrt=wrt, disconnected_inputs=disconnected_inputs)
 return format_as(using_list, using_tuple, ret)

def Lop ( f , wrt , eval_points , consider_constant = None , disconnected_inputs = 'raise' ) : if ( type ( eval_points ) not in ( list , tuple ) ) : eval_points = [ eval_points ] using_list = isinstance ( wrt , list ) using_tuple = isinstance ( wrt , tuple ) if ( not isinstance ( f , ( list , tuple ) ) ) : f = [ f ] f = list ( f ) grads = list ( eval_points ) if ( not isinstance ( wrt , ( list , tuple ) ) ) : wrt = [ wrt ] assert ( len ( f ) == len ( grads ) ) known = OrderedDict ( izip ( f , grads ) ) ret = grad ( cost = None , known_grads = known , consider_constant = consider_constant , wrt = wrt , disconnected_inputs = disconnected_inputs ) return format_as ( using_list , using_tuple , ret )
computes the l operation on f wrt to wrt evaluated at points given in eval_points .