Skip to content

Instantly share code, notes, and snippets.

View sdewaele's full-sized avatar

Stijn de Waele sdewaele

View GitHub Profile
@sdewaele
sdewaele / expm.jl
Last active February 28, 2019 16:30 — forked from matthiasschabel/expm.jl
Julia translation of MATLAB expm function (matrix exponential) and test code in Julia and MATLAB
using LinearAlgebra
import Base.exp
import LinearAlgebra.exp!
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