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:
objectA 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)
Methods
__init__Attributes
Overall shape of the lazy array.