Reduce

Workspace.Reduce(self: pyarts.arts._Workspace, o: pyarts.arts.WorkspaceVariable | pyarts.arts.Matrix | pyarts.arts.Numeric | pyarts.arts.Tensor3 | pyarts.arts.Tensor4 | pyarts.arts.Tensor5 | pyarts.arts.Tensor6 | pyarts.arts.Vector, i: pyarts.arts.WorkspaceVariable | pyarts.arts.Matrix | pyarts.arts.Tensor3 | pyarts.arts.Tensor4 | pyarts.arts.Tensor5 | pyarts.arts.Tensor6 | pyarts.arts.Tensor7 | pyarts.arts.Vector, verbosity: pyarts.arts.WorkspaceVariable | pyarts.arts.Verbosity | None = self.verbosity) None

Reduces a larger class to a smaller class of same size.

The Reduce command reduces all “1”-dimensions to nil. Examples:

  1. 1 Vector can be reduced to a Numeric

  2. 2x1 Matrix can be reduced to 2 Vector

  3. 1x3x1 Tensor3 can be reduced to 3 Vector

  4. 1x1x1x1 Tensor4 can be reduced to a Numeric

  5. 3x1x4x1x5 Tensor5 can only be reduced to 3x4x5 Tensor3

  6. 1x1x1x1x2x3 Tensor6 can be reduced to 2x3 Matrix

  7. 2x3x4x5x6x7x1 Tensor7 can be reduced to 2x3x4x5x6x7 Tensor6

And so on

Author(s): Oliver Lemke, Richard Larsson

Parameters: