class sigpy.linop.Diag(linops, oaxis=None, iaxis=None)[source]

Diagonally stack linear operators.

Create a Linop that splits input, applies linops independently, and concatenates outputs. In matrix form, given matrices {A1, …, An}, returns diag([A1, …, An]).

  • linops (list of Linops) – list of linops with the same input and output shape.
  • iaxis (int or None) – If None, inputs are vectorized and concatenated.
  • oaxis (int or None) – If None, outputs are vectorized and concatenated.
__init__(linops, oaxis=None, iaxis=None)[source]

Initialize self. See help(type(self)) for accurate signature.


__init__(linops[, oaxis, iaxis]) Initialize self.
apply(input) Apply linear operation on input.


H Return adjoint linear operator.
N Return normal linear operator.