-
Notifications
You must be signed in to change notification settings - Fork 71
Condense doc for is_square into single docstring #2186
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
base: master
Are you sure you want to change the base?
Conversation
Bother! I meant to choose draft PR. Oh well... |
Just click on "Convert to draft"... |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2186 +/- ##
=======================================
Coverage 87.95% 87.95%
=======================================
Files 127 127
Lines 31791 31791
=======================================
+ Hits 27961 27962 +1
+ Misses 3830 3829 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@doc raw""" | ||
is_square(a::T) where {T <: NCRingElement} | ||
is_square(M::MatElem) | ||
is_square(M::MatRingElem) | ||
There are two distinct situations: | ||
(1) if the argument is matrix then check whether the matrix **shape** is square | ||
(2) if the argument is not a matrix then check whether the **value** is a square (in the same ring) | ||
""" | ||
function is_square end |
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.
IMHO this really should be two docstrings:
- one for
is_square(a::NCRingElement)
- one for
is_square(M::MatElem)
Both then can be included in different parts of the manual (one in the ring interface section, one in matrix interface section).
i thought I had already made this into a draft PR