Skip to content

Commit

Permalink
Add norm for ModInt in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mschauer committed Jan 29, 2020
1 parent 28f008f commit 311f539
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stdlib/LinearAlgebra/test/generic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,8 @@ LinearAlgebra.Transpose(a::ModInt{n}) where {n} = transpose(a)

# Needed for pivoting:
Base.abs(a::ModInt{n}) where {n} = a
Base.norm(a::ModInt{n}) where {n} = a

Base.:<(a::ModInt{n}, b::ModInt{n}) where {n} = a.k < b.k

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

0 comments on commit 311f539

Please sign in to comment.