expm_frechet

torch_sim.math.expm_frechet(A, E, method=None, check_finite=True)[source]

Frechet derivative of the matrix exponential of A in the direction E.

Parameters:
  • A (Tensor) – (N, N) array_like. Matrix of which to take the matrix exponential.

  • E (Tensor) – (N, N) array_like. Matrix direction in which to take the Frechet derivative.

  • method (str | None) – str, optional. Choice of algorithm. Should be one of - SPS (default) - blockEnlarge

  • check_finite (bool) – bool, optional. Whether to check that the input matrix contains only finite numbers. Disabling may give a performance gain, but may result in problems (crashes, non-termination) if the inputs do contain infinities or NaNs.

Returns:

A tuple containing:

expm_A: Matrix exponential of A. expm_frechet_AE: Frechet derivative of the matrix exponential of A

in the direction E.

Return type:

tuple[Tensor, Tensor]