expm_frechet_with_matrix_exp¶
- torch_sim.math.expm_frechet_with_matrix_exp(A, E, method=None, check_finite=True)[source]¶
Frechet derivative of the matrix exponential of A in the direction E.
- Parameters:
A (Tensor | ndarray) – (N, N) tensor.Tensor or np.ndarray. Matrix of which to take the matrix exponential.
E (Tensor | ndarray) – (N, N) tensor.Tensor or np.ndarray. 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. Defaults to True.
- Returns:
torch.Tensor. Matrix exponential of A. expm_frechet_AE: torch.Tensor. Frechet derivative of the matrix exponential of A
in the direction E.
- Return type:
expm_A