added the possibility to multiply a field by a model
-
Owner
I'm not sure ... this looks very much like the exception we made for multiplying operators with scalars. If I read the code correctly, the explicit conversion of a
Field
to aConstant
would require specifying a position argument, which is somehow redundant (just like the domain of aScalingOperator
). -
Author Maintainer
By our definition, models behave like fields. By this paradigma, this should be fine. What kind of bugs do you think it triggers?
-
Maintainer
By our definition, models behave like fields. By this paradigma, this should be fine. What kind of bugs do you think it triggers?
Somehow, one could mess up which fields are variable and which are not. Or people could acidentally write
Model.value*field
and noone would notice that one probably wants to haveModel*Constant(field)
.But I understand the redundancy argument with the
Constant
contructor. Perhaps the automatic conversion does not produce problems. -
Author Maintainer
We could discuss it We/Th next week and otherwise just leave it for now in until it makes trouble
-
Maintainer
Fine with me :)