@@ -164,10 +164,10 @@ function conic_form!(x::DotMultiplyAtom, unique_conic_forms::UniqueConicForms=Un
164164 # and that the sizes are compatible,
165165 # so if the sizes aren't equal the smaller one is size 1
166166 var = x. children[2 ]
167- if size (var,1 ) < size (coeff,1 )
168- var = ones (size (coeff,1 ))* var
169- elseif size (var,2 ) < size (coeff,2 )
170- var = var* ones (1 ,size (coeff,1 ))
167+ if size (var, 1 ) < size (coeff, 1 )
168+ var = ones (size (coeff, 1 )) * var
169+ elseif size (var, 2 ) < size (coeff, 2 )
170+ var = var * ones (1 , size (coeff, 1 ))
171171 end
172172
173173 const_multiplier = spdiagm (0 => vec (coeff))
@@ -180,10 +180,10 @@ end
180180function broadcasted (:: typeof (* ), x:: Constant , y:: AbstractExpr )
181181 if x. size == (1 , 1 ) || y. size == (1 , 1 )
182182 return x * y
183- elseif size (y,1 ) < size (x,1 ) && size (y,1 ) == 1
184- return DotMultiplyAtom (x, ones (size (x,1 ))* y)
185- elseif size (y,2 ) < size (x,2 ) && size (y,2 ) == 1
186- return DotMultiplyAtom (x, y* ones (1 ,size (x,1 )))
183+ elseif size (y, 1 ) < size (x, 1 ) && size (y, 1 ) == 1
184+ return DotMultiplyAtom (x, ones (size (x, 1 )) * y)
185+ elseif size (y, 2 ) < size (x, 2 ) && size (y, 2 ) == 1
186+ return DotMultiplyAtom (x, y * ones (1 , size (x, 1 )))
187187 else
188188 return DotMultiplyAtom (x, y)
189189 end
0 commit comments