Skip to content

Commit f57f653

Browse files
committed
proxqp/dense: further fixes
1 parent 6c6ff18 commit f57f653

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

include/proxsuite/proxqp/dense/views.hpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,19 +1150,18 @@ noalias_mul_add(MatrixViewMut<T, colmajor> dst,
11501150
MapMut(dst.data, dst.rows, dst.cols, Stride(dst.outer_stride))
11511151
.noalias()
11521152
.
1153-
operator+=(
1154-
Map(lhs.data, lhs.rows, lhs.cols, Stride(lhs.outer_stride))
1155-
.
1156-
operator*(Map(rhs.data, rhs.rows, rhs.cols, Stride(rhs.outer_stride))
1157-
.
1158-
operator*(factor)));
1153+
operator+=(factor *
1154+
Map(lhs.data, lhs.rows, lhs.cols, Stride(lhs.outer_stride))
1155+
.
1156+
operator*(Map(
1157+
rhs.data, rhs.rows, rhs.cols, Stride(rhs.outer_stride))));
11591158
}
11601159
#endif
11611160

11621161
else {
11631162
// gemm
11641163
dst.to_eigen().noalias().operator+=(
1165-
lhs.to_eigen().operator*(rhs.to_eigen().operator*(factor)));
1164+
factor * lhs.to_eigen().operator*(rhs.to_eigen()));
11661165
}
11671166
}
11681167

0 commit comments

Comments
 (0)