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 Vector can be reduced to a Numeric
2x1 Matrix can be reduced to 2 Vector
1x3x1 Tensor3 can be reduced to 3 Vector
1x1x1x1 Tensor4 can be reduced to a Numeric
3x1x4x1x5 Tensor5 can only be reduced to 3x4x5 Tensor3
1x1x1x1x2x3 Tensor6 can be reduced to 2x3 Matrix
2x3x4x5x6x7x1 Tensor7 can be reduced to 2x3x4x5x6x7 Tensor6
And so on
Author(s): Oliver Lemke, Richard Larsson
- Parameters:
o (Numeric or Numeric or Numeric or Numeric or Numeric or Numeric or Numeric or Vector or Vector or Vector or Vector or Vector or Vector or Matrix or Matrix or Matrix or Matrix or Matrix or Tensor3 or Tensor3 or Tensor3 or Tensor3 or Tensor4 or Tensor4 or Tensor4 or Tensor5 or Tensor5 or Tensor6) – Reduced form of input. [OUT]
i (Vector or Matrix or Tensor3 or Tensor4 or Tensor5 or Tensor6 or Tensor7 or Matrix or Tensor3 or Tensor4 or Tensor5 or Tensor6 or Tensor7 or Tensor3 or Tensor4 or Tensor5 or Tensor6 or Tensor7 or Tensor4 or Tensor5 or Tensor6 or Tensor7 or Tensor5 or Tensor6 or Tensor7 or Tensor6 or Tensor7 or Tensor7) – Over-dimensioned input. [IN]
verbosity (Verbosity) – ARTS verbosity. See
verbosity
, defaults toself.verbosity
[IN]