linop.block_diag

Contents

linop.block_diag#

bartorch.linop.block_diag()#

Block-diagonal operator over ops.

Each operator maps its own part of the input to its own part of the output. BART’s linop_stack, folded over the sequence.

Parameters:
  • ops (sequence of LinearOperator) – At least one. Domains must agree except along domain_axis and codomains except along axis.

  • axis (int, default=0) – Codomain axis the outputs are concatenated along.

  • domain_axis (int, default=None) – Domain axis the inputs are concatenated along; None takes axis.

Return type:

LinearOperator