Skip to content

Commit

Permalink
Fix dsm.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kostrykin committed Jul 16, 2024
1 parent fc478fd commit 6f0f0b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superdsm/dsm.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def hessian(self, params):
self._update_theta()
kappa = self.theta - np.square(self.theta)
pixelmask = (kappa != 0)
term4 = np.sqrt(kappa[pixelmask] * pixelmask.sum())[None, :]
term4 = np.sqrt(kappa[pixelmask].sum())[None, :]
D1 = np.asarray([-self.y * qi for qi in self.q])[:, pixelmask] * term4
D2 = self.smooth_mat[pixelmask].multiply(-self.y[pixelmask, None]).T.multiply(term4).tocsr()
if self.smooth_mat.shape[1] > 0:
Expand Down

0 comments on commit 6f0f0b7

Please sign in to comment.