"""Increments a subtensor using advanced indexing.
"""
def__init__(self,args):#idx_list? inplace=False?
self.args=args
defmake_node(self,x,y,*inputs):
x=as_tensor_variable(x)
y=as_tensor_variable(y)
ifx.ndim==2andy.ndim==1andlen(inputs)==2:
ind1=as_tensor_variable(inputs[0])
ind2=as_tensor_variable(inputs[1])
ifind1.ndim==1andind2.ndim==1:
returngof.Apply(self,
(x,y)+inputs,
[tensor(dtype=x.type.dtype,
broadcastable=x.type.broadcastable)])
raiseNotImplementedError('Advanced indexing increment of x (of dimension %i) by y (of dimension %i) with these argument dimensions (%s) not supported yet'\