spyrit.misc.sampling.sampling_map_from_order
- spyrit.misc.sampling.sampling_map_from_order(order: tensor, M: int)[source]
Generate a sampling map from a given order (ranking) and number of measurements
- Parameters:
order (torch.tensor) – n by n matrix containing the rankings (order) corresponding to each Hadamard pattern.
M (int) – Number of measurements.
- Returns:
s_map (torch.tensor) – n by n binary sampling map.