bartorch.linop.concatenate#
- bartorch.linop.concatenate(ops, axis=0)#
Apply every operator to the same input and lay the results end to end.
torch.catof what they return, and what pylops callsVStack: the operators share a domain, and their codomains agree except alongaxis, where the sizes add up.- Parameters:
ops (sequence of LinearOperator) – At least one. All must have the same domain.
axis (int) – Which axis of the codomain grows, as an index into it.
Examples
>>> A = concatenate([FFT(shape, axes=-1), Identity(shape)]) >>> A.oshape == (2 * shape[0],) + shape[1:] True