torch_sim.mathΒΆ

Mathematical operations and utilities.

Functions

expm_cond

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

expm_frechet

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

expm_frechet_algo_64

Compute matrix exponential and its Frechet derivative using Algorithm 6.4.

expm_frechet_block_enlarge

Helper function for testing and profiling.

expm_frechet_kronform

Construct the Kronecker form of the Frechet derivative of expm.

matrix_exp

Compute the matrix exponential of A using PyTorch's matrix_exp.

matrix_log_33

Compute the matrix logarithm of a square 3x3 matrix.

matrix_log_scipy

Compute the matrix logarithm of a square matrix using scipy.linalg.logm.

vec

Stack columns of M to construct a single vector.

Classes

ell_table_61

Built-in immutable sequence.

expm

Compute the matrix exponential of a matrix or batch of matrices.