-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
RFC: Add documentation for givens, ldltfact!, and eigvals!. Fixes #10526 #12852
Conversation
|
||
such that `G*A[:,col]=y` with `y[i1]=r`, and `y[i2]=0`. The cosine and sine of the rotation angle can be extracted from the `Givens` type with `G.c` and `G.s` respectively. The arguments `f` and `g` can be either `Float32`, `Float64`, `Complex{Float32}`, or `Complex{Float64}`. The `Givens` type supports left multiplication `G*A` and conjugated transpose right multiplication `A*G'`. The type doesn't have a `size` and can therefore be multiplied with matrices of arbitrary size as long as `i2<=size(A,2)` for `G*A` or `i2<=Size(A,1)` for `A*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.
i2<=Size(A,1)
should be size
, right?
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.
Same above.
Now that #12835 is merged, is this ready to go? |
If these are public doc, they should follow the format of other doc in |
@yuyichao Is this process described anywhere? I don't really understand the new system. Would you explain "..add the function signature to the relavant section in the rst doc"? |
The documentation strings should look like this, where the method signature is intented as the line in the doc string: doc"""
chol(A, [LU]) -> F
Compute the Cholesky factorization of a symmetric positive definite matrix `A`
and return the matrix `F`. If `LU` is `Val{:U}` (Upper), `F` is of type `UpperTriangular`
and `A = F'*F`. If `LU` is `Val{:L}` (Lower), `F` is of type `LowerTriangular` and
`A = F*F'`. `LU` defaults to `Val{:U}`.
""" In the
The documentation will then automatically be inserted in the |
@KristofferC Thanks. We better write that down somewhere at some point. |
I thought @jakebolewski put it in |
This is one of 2 remaining 0.4 issues. Is this release blocking? Please merge or remove the milestone as soon as practical. |
59336af
to
d17b17d
Compare
Okay. I think this one is ready for review now. To counter comments on the lack of hard newlines: I still think new lines should be soft because
If there is now a consensus for hard newlines and if the parsing of newlines works then I'll of course update the pr. |
A new line in the doc string doesn't count as a hard newline does it? I thought markdown didn't care about single new lines. Does the in-terminal-help hard break the line on single new lines in doc strings? |
Github refuses to wrap long lines in julia code. Until that changes we should wrap long lines for review and readability. |
d17b17d
to
bb8f665
Compare
@KristofferC you are right. So it is only a matter of formatting the source. @tkelman I don't wan't this pr to take much longer so I've hit enter a couple of times in the source. However, I've just realized that GitHub's split mode actually wraps lines so if you switch to that you'll probably see a nice altenation between soft and hard newlines where every second line has one word. |
bb8f665
to
48fca7a
Compare
48fca7a
to
f700a90
Compare
RFC: Add documentation for givens, ldltfact!, and eigvals!. Fixes #10526
I think this shouldn't be merged before the other doc changes are completed.
Please check for bad language, typos and errors.