Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
iTRAILS v2.0.4 documentation
iTRAILS v2.0.4 documentation
  • Parameterization of the Model
  • Optimization of parameters
  • Viterbi Decoding
  • Posterior Decoding in iTRAILS
  • API Reference
    • combine_states module
    • cutpoints module
    • deepest_ti module
    • expm module
    • get_emission_prob_mat module
    • get_joint_prob_mat module
    • get_tab module
    • get_trans_emiss module
    • helper_omegas module
    • int_combine_states module
    • int_get_emission_prob_mat module
    • int_get_joint_prob_mat module
    • int_get_ordered module
    • int_get_tab module
    • int_get_times module
    • int_get_trans_emiss module
    • int_load_trans_mat module
    • int_optimizer module
    • int_shared_data module
    • int_vanloan module
    • ncpu module
    • optimizer module
    • read_data module
    • run_markov_chain_AB module
    • run_markov_chain_ABC module
    • trans_mat module
    • vanloan module
    • workflow_int_optimize module
    • workflow_int_posterior module
    • workflow_int_viterbi module
    • workflow_optimize module
    • workflow_posterior module
    • workflow_viterbi module
    • yaml_helpers module
Back to top
View this page

expm module¶

itrails.expm.expm(A)[source]¶

Calculates matrix exponential of a square matrix A. Adapted from https://github.com/michael-hartmann/expm/blob/master/python/expm.py Algorithm 10.20 from unctions of Matrices: Theory and Computation, Nicholas J. Higham, 2008

Parameters:

A (np.array) – square matrix

Returns:

matrix exponential of A

Return type:

np.array

Next
get_emission_prob_mat module
Previous
deepest_ti module
Copyright © 2026, David Martin-Pestana, Iker Rivas-González
Made with Sphinx and @pradyunsg's Furo
On this page
  • expm module
    • expm()