(self, other=None)
return sum(map(lambda a: a * a, v))
For fast length comparison
For fast length comparison
For fast length comparison
def dist_sq(self, other=None):
        """ For fast length comparison """
        v = self - other if other else self
        return sum(map(lambda a: a * a, v))
def dist_sq ( self , other = None ) : v = self - other if other else self return sum ( map ( lambda a : a * a , v ) )