Skip to content

Commit

Permalink
Merge pull request PyDMD#121 from tianyikillua/master
Browse files Browse the repository at this point in the history
Fix PyDMD#120 through introducing original t0 in dynamics
  • Loading branch information
ndem0 committed Feb 17, 2020
2 parents 60e18fd + cd5f96d commit 4005d9c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pydmd/dmdbase.py
Expand Up @@ -124,8 +124,9 @@ def dynamics(self):
:rtype: numpy.ndarray
"""
omega = old_div(np.log(self.eigs), self.original_time['dt'])
vander = np.exp(np.multiply(*np.meshgrid(omega, self.dmd_timesteps)))
return (vander * self._b).T
vander = np.exp(
np.outer(omega, self.dmd_timesteps - self.original_time['t0']))
return vander * self._b[:, None]

@property
def reconstructed_data(self):
Expand Down

0 comments on commit 4005d9c

Please sign in to comment.