Skip to content

Commit

Permalink
feat: add indirection layer for coprime base
Browse files Browse the repository at this point in the history
  • Loading branch information
thofma committed Sep 18, 2024
1 parent 956093d commit fb0bcf5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/algorithms/coprime_base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ end
Returns a coprime base for $S$, i.e. the resulting array contains pairwise coprime objects that multiplicatively generate the same set as the input array.
"""
function coprime_base(S::Vector{E}) where {E <: RingElement}
return coprime_base_steel(S)
end

function coprime_base_steel(S::Vector)
@assert !isempty(S)
T = Array{E}(undef, 1)
T[1] = S[1]
Expand Down

0 comments on commit fb0bcf5

Please sign in to comment.