Ones.to_linspace (function) def to_linspace(self) Convert from Ones to Linspace (only supported for flat arrays in which shape is an integer, not a tuple). Linspace(1, 1, self.shape) Returns Linspace Raises NotImplementedError: if the shape is not flat.