SparseIdentity

Workspace.SparseIdentity(self: pyarts.arts._Workspace, output: pyarts.arts.WorkspaceVariable | pyarts.arts.Sparse, n: pyarts.arts.WorkspaceVariable | pyarts.arts.Index, value: pyarts.arts.WorkspaceVariable | pyarts.arts.Numeric | None = 1, verbosity: pyarts.arts.WorkspaceVariable | pyarts.arts.Verbosity | None = self.verbosity) None

Returns a sparse dentity matrix.

The size of the matrix created is n x n. Default is to return a true identity matrix (I), but you can also select another value along the diagonal be setting value. That is, the output is value*I.

Author(s): Simon Pfreundschuh

Parameters:
  • output (Sparse) – Sparse output matrix. [OUT]

  • n (Index) – Size of the matrix. [IN]

  • value (Numeric, optional) – The value along the diagonal. Defaults to 1 [IN]

  • verbosity (Verbosity) – ARTS verbosity. See verbosity, defaults to self.verbosity [IN]