linop.Roll#
- class bartorch.linop.Roll#
Bases:
LinearOperatorShift along one axis, BART’s
linop_shift.With
mode="wrap"this istorch.roll: what leaves one end comes back at the other. With another mode what leaves is dropped and what arrives is whatever that mode supplies, so the operator is no longer unitary.- Parameters:
shape (tuple of int) – The shape it maps to itself, C order.
shift (int) – How far to move, towards higher indices when positive.
axis (int, default=-1) – Which axis to move along.
mode (str, default='wrap') –
"wrap","constant","symmetric"or"reflect".
Also has the methods and properties of LinearOperator.