kspace_as_real#
- mrinufft.operators.autodiff.kspace_as_real(y)[source]#
View k-space data as real-valued tensor.
Converts a complex k-space tensor of shape (B, C, K) to a real-valued tensor of shape (B, C, K, 2) where the last dimension holds the real and imaginary parts.
- Parameters:
y (torch.Tensor) – Complex k-space tensor of shape (B, C, K).
- Returns:
Real-valued tensor of shape (B, C, K, 2).
- Return type:
torch.Tensor