-
Notifications
You must be signed in to change notification settings - Fork 72
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
Changes from 5 commits
746ec2b
ddd7300
707b4cc
ea4d8b4
c049a50
0d87449
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -176,6 +176,14 @@ function is_nilpotent(a::T) where {T <: NCRingElement} | |||||
| end | ||||||
|
|
||||||
|
|
||||||
| @doc raw""" | ||||||
| is_square(a::T) where {T <: NCRingElement} | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Of course this is a very minor complaint. But at least to me these function signatures are confusing, I always start wondering if there is a reason to write it with the type parameter. And I don't see a reason to write it this way in a docstring. |
||||||
|
|
||||||
| Return `true` iff `a` is the square of a value in its own ring. | ||||||
| See also `is_square(M::MatElem)` which tests whether a matrix has square shape. | ||||||
| """ | ||||||
| function is_square end | ||||||
|
Comment on lines
+179
to
+185
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually, this docstring should be added to the manual. For now the "most obvious" spot would be in |
||||||
|
|
||||||
| ############################################################################### | ||||||
| # | ||||||
| # Characteristic | ||||||
|
|
||||||
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.
By the looks of it, the same treatment should be extended to the
Base.sqrtmethods -- and then perhaps instead of removing the sections here outright, we could something like this: