def __call__(self,x):
current_sum = <NUM_LIT:1.0>*numpy.sum(abs(x.ravel()))<EOL>if current_sum != <NUM_LIT:0>:<EOL><INDENT>factor = (self.norm_value/current_sum)<EOL>x *= factor<EOL><DEDENT>
L1-normalize the input array, if it has a nonzero sum.