ints ( , ). , ?
diff = abs( A.astype('int32') - B.astype('int32') )
, Matlab: becuase, int Matlab . (Matlab):
>> uint32(4)-uint32(5)
ans =
0
4294967295, python.
, Matlab,
>>> A = numpy.array([ 1,2,3], dtype='uint32')
>>> B = numpy.array([2,2,2], dtype='uint32')
>>> numpy.clip( A.astype(int) - B.astype(int), 0, numpy.iinfo(int).max )
array([0, 0, 1])