sigpy.blocks_to_array

sigpy.blocks_to_array(input, oshape, blk_shape, blk_strides)[source]

Accumulate blocks into an array in a sliding window manner.

Parameters:
  • input (array) – input array of shape […] + num_blks + blk_shape
  • oshape (tuple) – output shape.
  • blk_shape (tuple) – block shape of length ndim.
  • blk_strides (tuple) – block strides of length ndim.
Returns:

array of shape oshape.

Return type:

array