kspace_as_cpx#

mrinufft.operators.autodiff.kspace_as_cpx(y)[source]#

View real-packed k-space tensor as complex.

Converts a real-valued tensor of shape (B, C, K, 2) back to a complex tensor of shape (B, C, K).

Parameters:

y (torch.Tensor) – Real-valued tensor of shape (B, C, K, 2).

Returns:

Complex tensor of shape (B, C, K).

Return type:

torch.Tensor