Skip to content

Instantly share code, notes, and snippets.

View matthiasschabel's full-sized avatar

Matthias Schabel matthiasschabel

View GitHub Profile
@matthiasschabel
matthiasschabel / expm.jl
Created November 14, 2012 18:41
Julia translation of MATLAB expm function (matrix exponential) and test code in Julia and MATLAB
function expmchk()
# EXPMCHK Check the class of input A and
# initialize M_VALS and THETA accordingly.
m_vals = [3 5 7 9 13];
# theta_m for m=1:13.
theta = [#3.650024139523051e-008
#5.317232856892575e-004
1.495585217958292e-002 # m_vals = 3
#8.536352760102745e-002
2.539398330063230e-001 # m_vals = 5