Skip to content

Commit

Permalink
add back vector conversion function
Browse files Browse the repository at this point in the history
  • Loading branch information
mjrodgers committed Aug 23, 2023
1 parent d35104f commit 2a6576f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions experimental/StandardFiniteFields/src/StandardFiniteFields.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ function pop_largest_factor!(f::Fac{ZZRingElem})
return m
end

# TODO : Should be fixed in Nemo
function (k::Nemo.FpField)(a::Vector)
@assert isone(length(a))
return k(a[1])

Check warning on line 28 in experimental/StandardFiniteFields/src/StandardFiniteFields.jl

View check run for this annotation

Codecov / codecov/patch

experimental/StandardFiniteFields/src/StandardFiniteFields.jl#L26-L28

Added lines #L26 - L28 were not covered by tests
end
function (k::FqPolyRepField)(a::Vector)
return k(polynomial(GF(ZZ(characteristic(k))), a))
end

# TODO : Should be fixed in Hecke for prime fields
function coords(x::FinFieldElem)
Expand Down

0 comments on commit 2a6576f

Please sign in to comment.