bartorch.linop.block_diag#
- bartorch.linop.block_diag(ops, axis=0, domain_axis=None)#
Give each operator its own part of the input and its own part of the output.
BART’s
linop_stack, folded over the sequence. The domains are laid end to end alongdomain_axisand the codomains alongaxis; both default to the first, and each side must agree off the axis it grows along.- Parameters:
ops (sequence of LinearOperator) – At least one.
axis (int) – Which axis of the codomain grows.
domain_axis (int, optional) – Which axis of the domain grows;
axiswhen left out.