Closed FabianHofmann closed 4 months ago
Hello FabianHofmann, thanks for the feature. Could your provide an example of dot product between a linopy variable (vector) and a constant matrix ? It seems this is not yet possible but I wanted to have your opinion if possible.
KR
New Features
Variables and LinearExpressions now have a new method
dot
, which allows computing the dot product of two objects. This multiplies objects and sums over common dimensions.The matmul operator
@
, which runs thedot
operation, is now supported for Variables and LinearExpression.Bugfixes
(v1 + c1) * (v2 + c2)
withv
being a variable andc
a constant, the operation did not calculate the cross termsv1 * c2 + v2 * c1
. This is fixed now.