Skip to content
Snippets Groups Projects
Commit 5d0519d3 authored by Christoph Lienhard's avatar Christoph Lienhard
Browse files

added docu for binary helper classes

parent c66b8bea
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,7 @@ def _joint_position(op1, op2):
class ScalarMul(Model):
"""Class representing a model multiplied by a scalar factor."""
def __init__(self, factor, op):
# TODO op -> model
super(ScalarMul, self).__init__(op.position)
......@@ -49,6 +50,7 @@ class ScalarMul(Model):
class Add(Model):
"""Class representing the sum of two models."""
def __init__(self, position, op1, op2):
super(Add, self).__init__(position)
......@@ -68,6 +70,7 @@ class Add(Model):
class Mul(Model):
"""Class representing the pointwise product of two models."""
def __init__(self, position, op1, op2):
super(Mul, self).__init__(position)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment