changed the behaviour of pdinv: now returns L and Li as well as the inverse

This commit is contained in:
James Hensman 2012-12-06 09:51:13 -08:00
parent 574f9f4e0a
commit c72d1b1a5b
5 changed files with 21 additions and 25 deletions

View file

@ -19,7 +19,7 @@ class finite_dimensional(kernpart):
self.D = D
self.F = F
self.G = G
self.G_1 ,tmp = pdinv(G)
self.G_1 ,L,Li,logdet = pdinv(G)
self.n = F.shape[0]
if weights is not None:
assert weights.shape==(self.n,)