MatrixIdentity

Workspace.MatrixIdentity(self: pyarts.arts._Workspace, output: pyarts.arts.WorkspaceVariable | pyarts.arts.Matrix, 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 the identity matrix.

The size if 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 by setting value. That is, the output is value * I.

Author(s): Patrick Eriksson

Parameters:
  • output (Matrix) – 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]