-
Notifications
You must be signed in to change notification settings - Fork 134
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
Improve documentation for the "Matrix groups" section #4556
base: master
Are you sure you want to change the base?
Improve documentation for the "Matrix groups" section #4556
Conversation
- add introductory text and examples for matrix groups (analogous to the recent changes in the documentation for f.p. groups) - improve the documentation for sesquilinear forms - change/fix docstrings, add examples to docstrings - export `invariant_bilinear_form`, `invariant_quadratic_form`, `invariant_sesquilinear_form` (alternatively, we could remove their documentation from the manual)
src/Groups/matrices/form_group.jl
Outdated
@@ -184,7 +184,7 @@ An exception is thrown if `base_ring(G)` is not a finite field with even degree | |||
over its prime subfield. | |||
|
|||
!!! warning "Note:" | |||
At the moment, elements of the generating set are returned of type `mat_elem_type(G)`. | |||
At the moment, elements of the generating set are returned of type `mat_elem_type(typeof(G))`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For other similar *_type
function we actually make sure that one can also pass in instances, for convenience. Maybe a good idea to do that here, too? E.g. we do this in AA:
elem_type(x) = elem_type(typeof(x))
elem_type(T::DataType) = throw(MethodError(elem_type, (T,)))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found mat_elem_type
a bit irritating: It is not documented at all, but it appears essentially in these warnings in the documentation.
Now I think that the function is useful. Thus I will document mat_elem_type
and ring_elem_type
, and then it makes sense to admit also the group as an argument instead of its type.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4556 +/- ##
==========================================
- Coverage 84.43% 84.43% -0.01%
==========================================
Files 673 673
Lines 89624 89624
==========================================
- Hits 75676 75671 -5
- Misses 13948 13953 +5
|
- document `ring_elem_type`, `mat_elem_type`, admit a matrix group as argument - add examples for `corresponding_bilinear_form`, `corresponding_quadratic_form` - changed `show` for forms to avoid trailing whitespace
The matrices returned by `corresponding_bilinear_form` and `corresponding_quadratic_form` are determined at most up to scalars, thus `jldoctest` cannot be used.
Some tests fail: Aqua's "persistent tasks" complains. |
invariant_bilinear_form
,invariant_quadratic_form
,invariant_sesquilinear_form
(alternatively, we could remove their documentation from the manual)