def Indicator(pos, size, dtype):
 x = numpy.zeros(size, dtype=dtype)
 x[pos] = 1
 return x

def Indicator ( pos , size , dtype ) : x = numpy . zeros ( size , dtype = dtype ) x [ pos ] = 1 return x
returns an array of length size and type dtype that is everywhere 0 .