-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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 docstrings for std and var #31200
Conversation
[ci skip]
|
||
Compute the sample variance of a vector or array `v`, optionally along the given dimensions. |
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.
This part was actually incorrect (out of date).
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.
You need to change a lot more instances of v
to itr
for this to be a consistent change. I suggested a few of them but there were more so I stopped after a while. Note that the "equivalent code" looks a bit weird since length(itr)
is not generally a thing you can do for an iterable.
Woops, sorry, that's the kind of change that sounds trivial but ends up requiring more though. I've added "For arrays, this is equivalent to" and avoided using |
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.
Looks good now.
[ci skip]