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 | ndarray) – torch.Tensor or np.ndarray. 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. Defaults to True.
- Returns:
- torch.Tensor. The relative condition number of the matrix exponential
in the Frobenius norm
- Return type:
kappa