Skip to content

Commit

Permalink
fix P matrix calculation for an array of t for GTR
Browse files Browse the repository at this point in the history
  • Loading branch information
jangevaare committed Jul 27, 2017
1 parent 914acd5 commit da38079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/substitution_models/gtr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function P(gtr::GTR, t::Array{Float64})
error("t must be positive")
end
eig_vals, eig_vecs = eig(Q(mod))
return [expm(eig_vecs * (diagm(eig_vals)*i) * eig_vecs') for i in t]
return [eig_vecs * expm(diagm(eig_vals)*i) * eig_vecs' for i in t]
end


Expand Down

0 comments on commit da38079

Please sign in to comment.