code: def cross(self, vec):
          
          if not isinstance(vec, self.__class__):
              raise TypeError('Cross product operand must be a vector')
          return self.__class__(np.cross(self, vec))
docs: Cross product with another vector