Skip to content

Commit 33f0f8f

Browse files
committed
Trac #40127: Pass factor_on_left in linear_combination
1 parent d617df4 commit 33f0f8f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sage/data_structures/blas_dict.pyx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,8 @@ cpdef dict linear_combination(dict_factor_iter, bint factor_on_left=True):
350350
if not result and a == 1:
351351
result = D.copy()
352352
else:
353-
iaxpy(a, D, result, remove_zeros=False)
353+
iaxpy(a, D, result, remove_zeros=False,
354+
factor_on_left=factor_on_left)
354355

355356
return remove_zeros(result)
356357

0 commit comments

Comments
 (0)