expm_frechet_block_enlarge¶ torch_sim.math.expm_frechet_block_enlarge(A, E)[source]¶ Helper function for testing and profiling. Parameters: A (Tensor) – Input matrix E (Tensor) – Direction matrix 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]