C_lazy#

class mrinufft.extras.field_map.C_lazy(C_sr: ndarray[tuple[int, ...], dtype[complex64]], idxr: _Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes], idxi: _Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes], img_shape: tuple[int, int, int])[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)

__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[source]#

Overall shape of the lazy array.