MatrixSetConstant

Workspace.MatrixSetConstant(self: pyarts.arts._Workspace, output: Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Matrix], nrows: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Index]] = self.nrows, ncols: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Index]] = self.ncols, value: Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Numeric], verbosity: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Verbosity]] = self.verbosity) None

Creates a matrix and sets all elements to the specified value.

The size is determined by ncols and nrows.

Author(s): Patrick Eriksson

Parameters:
  • output (Matrix) – Variable to initialize. [OUT]

  • nrows (Index, optional) – Number of rows (elements in 2nd lowest dimension) of a Matrix or Tensor. See nrows, defaults to self.nrows [IN]

  • ncols (Index, optional) – Number of columns (elements in lowest dimension) of a Matrix or Tensor. See ncols, defaults to self.ncols [IN]

  • value (Numeric) – Matrix value. [IN]

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