Skip to content

Commit 3815074

Browse files
committed
add covering test
1 parent f0859bf commit 3815074

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/sage/matrix/matrix2.pyx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16484,6 +16484,11 @@ cdef class Matrix(Matrix1):
1648416484

1648516485
sage: matrix(CDF, 2, 2, sparse=True).norm(1)
1648616486
0.0
16487+
16488+
Check the euclidean norm for a sparse matrix (:issue:`40492`)::
16489+
16490+
sage: matrix(ZZ, [[1, 2], [3, 4]], sparse=True).norm()
16491+
5.464985704219043
1648716492
"""
1648816493
from sage.rings.real_double import RDF
1648916494

0 commit comments

Comments
 (0)