Skip to content

Commit

Permalink
Merge pull request #482 from GavinHuttley/develop
Browse files Browse the repository at this point in the history
MAINT: removed unused function from matrix_exponentiation.py
  • Loading branch information
GavinHuttley committed Jan 10, 2020
2 parents ab531d6 + d83b749 commit d121884
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/cogent3/maths/matrix_exponentiation.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,18 +145,14 @@ def __call__(self, t=1.0):
return F


def chooseFastExponentiators(Q):
return (FastExponentiator, CheckedExponentiator)


def FastExponentiator(Q):
(roots, evT) = eig(Q)
roots, evT = eig(Q)
ev = evT.T
return EigenExponentiator(Q, roots, ev, evT, inv(ev))


def CheckedExponentiator(Q):
(roots, evT) = eig(Q)
roots, evT = eig(Q)
ev = evT.T
evI = inv(ev)
reQ = numpy.inner(ev.T * roots, evI).real
Expand Down

0 comments on commit d121884

Please sign in to comment.