def ceil_intdiv(a, b):
 div = int_div(a, b)
 ret = (cast(neq((a % b), 0), div.dtype) + div)
 assert (ret.dtype == scal.upcast(div.owner.inputs[0], div.owner.inputs[1]))
 return ret

def ceil_intdiv ( a , b ) : div = int_div ( a , b ) ret = ( cast ( neq ( ( a % b ) , 0 ) , div . dtype ) + div ) assert ( ret . dtype == scal . upcast ( div . owner . inputs [ 0 ] , div . owner . inputs [ 1 ] ) ) return ret
safely compute ceil(float_division) .