Skip to content

Commit d3ba445

Browse files
committed
Changed math style
1 parent 604b506 commit d3ba445

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pymc3/distributions/multivariate.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,11 @@ def logp(self, value):
124124
delta = value - mu
125125
k = tau.shape[0]
126126

127+
result = k * tt.log(2 * np.pi)
127128
if self.gpu_compat:
128-
result = k * tt.log(2 * np.pi) + tt.log(1. / det(tau))
129+
result -= tt.log(det(tau))
129130
else:
130-
result = k * tt.log(2 * np.pi) - logdet(tau)
131+
result -= logdet(tau)
131132
result += (delta.dot(tau) * delta).sum(axis=delta.ndim - 1)
132133
return -1 / 2. * result
133134

0 commit comments

Comments
 (0)