code: def class_check(vector):
      
      for i in vector:
          if not isinstance(i, type(vector[0])):
              return False
      return True
docs: Check different items in matrix classes.
  
      :param vector: input vector
      :type vector : list
      :return: bool