def getIsIdentityTetragrid(tetragrid):
 for column in xrange(4):
  for row in xrange(4):
   if (column == row):
    if (tetragrid[column][row] != 1.0):
     return False
   elif (tetragrid[column][row] != 0.0):
    return False
 return True

def getIsIdentityTetragrid ( tetragrid ) : for column in xrange ( 4 ) : for row in xrange ( 4 ) : if ( column == row ) : if ( tetragrid [ column ] [ row ] != 1.0 ) : return False elif ( tetragrid [ column ] [ row ] != 0.0 ) : return False return True
determine if the tetragrid is the identity tetragrid .