MRIStackedNUFFTGPU#

class mrinufft.operators.stacked.MRIStackedNUFFTGPU(samples, shape, z_index, smaps, n_coils=1, n_batchs=1, n_trans=1, squeeze_dims=False, smaps_cached=False, density=False, backend='cufinufft', **kwargs)[source]#

Bases: MRIStackedNUFFT

Stacked NUFFT Operator for MRI using GPU only backend.

This requires cufinufft to be installed.

Parameters:
  • samples (array-like) – Sample locations in a 2D kspace

  • shape (tuple) – Shape of the image.

  • z_index (array-like) – Cartesian z index of masked plan.

  • smaps (array-like) – Sensitivity maps.

  • n_coils (int) – Number of coils.

  • n_batchs (int) – Number of batchs.

  • **kwargs (dict) – Additional arguments to pass to the backend.

Methods

__init__

adj_op

Adjoint operator.

compute_density

Compute the density compensation weights and set it.

data_consistency

Compute the gradient data consistency.

get_lipschitz_cst

Return the Lipschitz constant of the operator.

op

Forward operator.

with_off_resonnance_correction

Return a new operator with Off Resonnance Correction.

Attributes

available

backend

cpx_dtype

Return complex floating precision of the operator.

density

Density compensation of the operator.

dtype

Return dtype.

interfaces

n_coils

Number of coils for the operator.

n_samples

Return number of samples.

ndim

Number of dimensions in image space of the operator.

norm_factor

Norm factor of the operator.

samples

Return the samples used by the operator.

shape

Shape of the image space of the operator.

smaps

Sensitivity maps of the operator.

uses_density

Return True if the operator uses density compensation.

uses_sense

Return True if the operator uses sensitivity maps.

property norm_factor#

Norm factor of the operator.

static _fftz(data)[source]#

Apply FFT on z-axis.

static _ifftz(data)[source]#

Apply IFFT on z-axis.

op(data, ksp=None)[source]#

Forward operator.

adj_op(coeffs, img=None)[source]#

Adjoint operator.

get_lipschitz_cst(max_iter, **kwargs)[source]#

Return the Lipschitz constant of the operator.

Parameters:
  • max_iter (int) – Number of iteration to perform to estimate the Lipschitz constant.

  • kwargs – Extra kwargs for the cufinufft operator.

Returns:

Lipschitz constant of the operator.

Return type:

float