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

add support to adjoin many elements #3294

Merged
merged 2 commits into from
Feb 1, 2024
Merged

add support to adjoin many elements #3294

merged 2 commits into from
Feb 1, 2024

Conversation

fieker
Copy link
Contributor

@fieker fieker commented Jan 31, 2024

possibly more draft...

allows to do
rt = [a,b,c] of type Vector{qqbar}
QQ[rt]
should help to transposrt matrices...

Copy link

codecov bot commented Jan 31, 2024

Codecov Report

Merging #3294 (e21910a) into master (a18cece) will decrease coverage by 0.09%.
Report is 40 commits behind head on master.
The diff coverage is 0.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3294      +/-   ##
==========================================
- Coverage   81.68%   81.60%   -0.09%     
==========================================
  Files         546      546              
  Lines       73054    73463     +409     
==========================================
+ Hits        59671    59946     +275     
- Misses      13383    13517     +134     
Files Coverage Δ
experimental/GModule/Misc.jl 2.87% <0.00%> (-0.67%) ⬇️

... and 85 files with indirect coverage changes

@@ -34,6 +68,7 @@ function Hecke.number_field(::QQField, a::qqbar; cached::Bool = false)
end

Base.getindex(::QQField, a::qqbar) = number_field(QQ, a)
Base.getindex(::QQField, a::Vector{qqbar}) = number_field(QQ, a)
Copy link
Member

Choose a reason for hiding this comment

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

maybe also

Suggested change
Base.getindex(::QQField, a::Vector{qqbar}) = number_field(QQ, a)
Base.getindex(::QQField, a::Vector{qqbar}) = number_field(QQ, a)
Base.getindex(::QQField, a::qbar, as::qqbar...) = number_field(QQ, [a, as...])

for interactive use: QQ[s,c]

@lgoettgens lgoettgens closed this Feb 1, 2024
@lgoettgens lgoettgens reopened this Feb 1, 2024
@fingolfin fingolfin merged commit 45d7d5c into master Feb 1, 2024
41 of 42 checks passed
@fingolfin fingolfin deleted the QQBar branch February 1, 2024 20:14
ooinaruhugh pushed a commit to ooinaruhugh/Oscar.jl that referenced this pull request Feb 15, 2024
Co-authored-by: Lars Göttgens <lars.goettgens@rwth-aachen.de>
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