Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve unbound type parameters #4363

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Conversation

fingolfin
Copy link
Member

This also removes some of the ambiguities for direct_product,
direct_sum, tensor_product with empty argument list.

Re-enable Aqua test for unbound type parameters.

This also removes some of the ambiguities for direct_product,
direct_sum, tensor_product with empty argument list.

Re-enable Aqua test for unbound type parameters.
Copy link
Member

@lgoettgens lgoettgens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing docstring for direct_sum(M::ModuleFP{T}...; task::Symbol = :sum) where T. Check Documenter's build log for details.' in @docs block in src/CommutativeAlgebra/ModulesOverMultivariateRings/module_operations.md:29-31

I think you need to update the docstring signature at this place as well

experimental/GModule/src/Cohomology.jl Outdated Show resolved Hide resolved
experimental/GModule/src/Cohomology.jl Outdated Show resolved Hide resolved
function direct_product(M::ModuleFP{T}, Ms::ModuleFP{T}...; task::Symbol = :prod) where T
return direct_product([M, Ms...]; task)
end
function direct_product(M::Vector{<:ModuleFP{T}}; task::Symbol = :prod) where T
F, pro, mF = direct_product([ambient_free_module(x) for x = M]..., task = :both)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
F, pro, mF = direct_product([ambient_free_module(x) for x = M]..., task = :both)
F, pro, mF = direct_product([ambient_free_module(x) for x = M], task = :both)

Better to not splat here, but use the new method taking a vector

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't sure if this is indeed now available in all possible cases that could occur here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants