Fixed bug in the product of kernels with tied parameters

This commit is contained in:
Nicolas 2013-02-06 09:52:54 +00:00
parent a1568ca1c8
commit b0f6495ed4
3 changed files with 10 additions and 3 deletions

View file

@ -102,6 +102,11 @@ class parameterised(object):
else:
return expr
def Nparam_transformed(self):
ties = 0
for ar in self.tied_indices:
ties += ar.size - 1
return self.Nparam - len(self.constrained_fixed_indices) - ties
def constrain_positive(self, which):
"""
@ -149,8 +154,6 @@ class parameterised(object):
def constrain_negative(self,which):
"""
Set negative constraints.