def _rescale_array(self, array, scale, zero):
if scale != <NUM_LIT:1.0>:<EOL><INDENT>sval = numpy.array(scale, dtype=array.dtype)<EOL>array *= sval<EOL><DEDENT>if zero != <NUM_LIT:0.0>:<EOL><INDENT>zval = numpy.array(zero, dtype=array.dtype)<EOL>array += zval<EOL><DEDENT>
Scale the input array