Skip to content

Commit bec544c

Browse files
committed
compute the result of s1*s2 directly to avoid the failure of test
1 parent ef07140 commit bec544c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/sage/data_structures/blas_dict.pyx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,13 +347,13 @@ cpdef dict linear_combination(dict_factor_iter, bint factor_on_left=True):
347347
sage: s1 = SGA([2, 1, 3]) # (1 2)
348348
sage: s2 = SGA([3, 1, 2]) # (1 3)
349349
sage: D1 = {0: s1}
350-
sage: blas.linear_combination([(D1, s2)], factor_on_left=False)
351-
{0: s1 * s2}
350+
sage: blas.linear_combination([(D1, s2)], factor_on_left=False) # s1 * s2
351+
{0: [1, 3, 2]}
352352
353353
Check left multiplication with coefficients in a noncommutative ring::
354354
355-
sage: blas.linear_combination([(D1, s2)], factor_on_left=True)
356-
{0: s2 * s1}
355+
sage: blas.linear_combination([(D1, s2)], factor_on_left=True) # s2 * s1
356+
{0: [3, 2, 1]}
357357
"""
358358
cdef dict result = {}
359359
cdef dict D

0 commit comments

Comments
 (0)