C_lazy#

class mrinufft.extras.field_map.C_lazy(C_sr, idxr, idxi, img_shape)[source]#

Bases: object

A lazy version of the C interpolator.

Instead of storing C as a (L, Nx, Ny, Nz) array, we store the quantize version of shape L, N_bins, and the indexes mapping each voxel of the complex-valued field-map to the bins values.

When accessing the L-th interpolator, the full (Nx, Ny, Nz) associated array is generated.

Parameters:
  • C_sr (NDArray of shape (L, Nbinsreal, Nbinsimag))

  • idxr (NDArray mapping field-map real value to real bins)

  • idxi (NDArray mapping field-map imag value to imag bins)

  • img_shape (tuple[int, int, int])

__getitem__()[source]#

Return the l-th interpolator, with the same shape as field-map.

Methods

__init__

Attributes

shape

Overall shape of the lazy array.

property shape#

Overall shape of the lazy array.