Skip to content

Commit 311f539

Browse files
committed
Add norm for ModInt in tests
1 parent 28f008f commit 311f539

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/LinearAlgebra/test/generic.jl

+2
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+
Base.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)