name added as a parameter of Prod

This commit is contained in:
Ricardo 2014-03-05 12:52:56 +00:00
parent 8e22373a00
commit 19c87c9f77
2 changed files with 7 additions and 5 deletions

View file

@ -129,7 +129,7 @@ class Kern(Parameterized):
"""
return self.prod(other, tensor=True)
def prod(self, other, tensor=False):
def prod(self, other, tensor=False, name=None):
"""
Multiply two kernels (either on the same space, or on the tensor
product of the input space).
@ -142,4 +142,4 @@ class Kern(Parameterized):
"""
assert isinstance(other, Kern), "only kernels can be added to kernels..."
from prod import Prod
return Prod(self, other, tensor)
return Prod(self, other, tensor, name)