longitudinal_relaxation_exchange_op

longitudinal_relaxation_exchange_op#

torchsim.epg.longitudinal_relaxation_exchange_op(weight, k, R1, time)[source]#

Prepare longitudinal relaxation and recovery operators in presence of exchange.

Parameters:
  • weight (torch.Tensor) – Fractional weight for the different pools of shape (npools,).

  • k (torch.Tensor) – Directional exchange rate matrix in [1/s] of shape (npools, npools).

  • R1 (torch.Tensor) – Longitudinal relaxation rate in [1/s] of shape (npools,).

  • time (torch.Tensor) – Time interval in [s].

Returns:

  • E1 (torch.Tensor) – Longitudinal relaxation and exchange operator.

  • rE1 (torch.Tensor) – Longitudinal recovery and exchange operator.

Return type:

tuple[Tensor, Tensor]