Skip to content

Commit

Permalink
Add order method for tables (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin authored Mar 5, 2024
1 parent 8528411 commit df74359
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/src/showinfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ printval
printinfotab
nrparams
params
order(t::Table)
```

## About Characters
Expand Down
17 changes: 17 additions & 0 deletions src/Show.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import Oscar.order
export chartypes, irrchartypes, classtypes, status, printinfotab, printval, printinfoclass, printinfochar, printclassparam, printcharparam, centord, chardeg, nrchars, nrclasses, nrparams, params
export order
# TODO PrintValPhi, PrintToTex?

import Oscar: pretty, Indent
Expand Down Expand Up @@ -104,6 +106,21 @@ function printinfotab(t::Table)
println(t.information)
end

"""
order(t::Table)
Return the order of the table `t`.
# Examples
```jldoctest
julia> g=genchartab("GL2");
julia> order(g)
q^4 - q^3 - q^2 + q
```
"""
order(t::Table) = t.order

"""
centord(t::Table, class::Int64)
Expand Down

0 comments on commit df74359

Please sign in to comment.