Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed May 25, 2024
1 parent 66dcc13 commit 34f8fdd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/fix.jl
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ function Base.convert(
end

ideal(set::FixedVariablesSet, args...) = set.ideal
function MA.promote_operation(::typeof(ideal), ::Type{FixedVariablesSet{V,T,M}}) where {V,T,M}
function MA.promote_operation(
::typeof(ideal),
::Type{FixedVariablesSet{V,T,M}},
) where {V,T,M}
return FixedVariablesIdeal{V,T,M}
end
MP.variables(set::FixedVariablesSet) = MP.variables(set.ideal)
Expand Down
5 changes: 4 additions & 1 deletion src/variety.jl
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ function projective_algebraic_set(p::Vector, args...)
end

ideal(V::AlgebraicSet) = V.I
function MA.promote_operation(::typeof(ideal), ::Type{<:AlgebraicSet{T,P,A}}) where {T,P,A}
function MA.promote_operation(
::typeof(ideal),
::Type{<:AlgebraicSet{T,P,A}},
) where {T,P,A}
return PolynomialIdeal{T,P,A}
end

Expand Down

0 comments on commit 34f8fdd

Please sign in to comment.