def is_same_transform(matrix0, matrix1):
 matrix0 = numpy.array(matrix0, dtype=numpy.float64, copy=True)
 matrix0 /= matrix0[(3, 3)]
 matrix1 = numpy.array(matrix1, dtype=numpy.float64, copy=True)
 matrix1 /= matrix1[(3, 3)]
 return numpy.allclose(matrix0, matrix1)

def is_same_transform ( matrix0 , matrix1 ) : matrix0 = numpy . array ( matrix0 , dtype = numpy . float64 , copy = True ) matrix0 /= matrix0 [ ( 3 , 3 ) ] matrix1 = numpy . array ( matrix1 , dtype = numpy . float64 , copy = True ) matrix1 /= matrix1 [ ( 3 , 3 ) ] return numpy . allclose ( matrix0 , matrix1 )
return true if two matrices perform same transformation .