Skip to content

Commit 08e4c24

Browse files
committed
Add norm for ModInt in tests
1 parent 28f008f commit 08e4c24

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/LinearAlgebra/test/generic.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,8 @@ LinearAlgebra.Transpose(a::ModInt{n}) where {n} = transpose(a)
346346

347347
# Needed for pivoting:
348348
Base.abs(a::ModInt{n}) where {n} = a
349+
LinearAlgebra.norm(a::ModInt{n}) where {n} = a
350+
349351
Base.:<(a::ModInt{n}, b::ModInt{n}) where {n} = a.k < b.k
350352

351353
@test A*(lu(A, Val(true))\b) == b

0 commit comments

Comments
 (0)