spyrit.core.meas.HadamSplit.unvectorize

HadamSplit.unvectorize(input: tensor) tensor

Reshape a vectorized tensor to the measurement shape (heigth, width).

Input:

input (torch.tensor): A tensor of shape (*, N) where * denotes the batch size and \(N = hw\) is the total number of pixels in the image.

Output:

torch.tensor: A tensor of shape (*, h, w) where * denotes the batch size and h, w the height and width of the image.