expm_cond

torch_sim.math.expm_cond(A, check_finite=True)[source]

Relative condition number of the matrix exponential in the Frobenius norm.

Parameters:
  • A (Tensor) – Square input matrix with shape (N, N)

  • check_finite (bool) – 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:

The relative condition number of the matrix exponential

in the Frobenius norm

Return type:

kappa