tools.ccapply_readout#
- bartorch.tools.ccapply_readout()#
Virtual channels of one readout under an SVD compression, as
ccapply -Sgives them.An SVD compression is one matrix for all of k-space, so a readout streamed on its own is projected by it directly, without a call into BART: the virtual channel
jissum_c conj(matrix[j, c]) readout[c].- Parameters:
readout (torch.Tensor) –
(channels, ...)samples, the channels first.matrix (torch.Tensor) – The compression matrix of
cc()withS=True,(channels, channels)or(channels, channels, 1, 1, 1).p (int) – Virtual channels kept.
- Returns:
(p, ...), in the dtype ofreadout.- Return type:
torch.Tensor
- Raises:
ValueError – If
readoutandmatrixdiffer in channels, orpis not between 1 and the channels.