Skip to content
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

docs(ref): document more of mp_units.core #662

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

JohelEGP
Copy link
Collaborator

@JohelEGP JohelEGP commented Dec 25, 2024

This is still a WIP (continues #628):

TBDs and still missing:

  • TBD: The quantity specification conversion algorithms.
  • TBD: The collapse common unit algorithms.
  • TBD: The dimension symbol formatting functions.
  • TBD: The unit symbol formatting functions.
    • TBD: magnitude-symbol.
  • TBD: The semantic requirements on the QuantityCharacterRepresentation concepts.
  • TBD: sudo_cast.
  • P1: Text output.
  • P2: system_reference
  • P1: math.h
  • P1: random.h

@JohelEGP JohelEGP changed the title docs(ref): document math.h docs(ref): document more of mp_units.core Dec 25, 2024
Comment on lines +6323 to +6324
% Should this come before the above, like in the C++ standard?
\rSec4[qty.rand.bern.geo]{Class template \tcode{geometric_distribution}}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the comment.
In the C++ Standard, geometric_distribution comes between
binomial_distribution and negative_binomial_distribution.

Comment on lines +6472 to +6483
\indexlibrarymemberx{extreme_value_distribution}{operator()}
\begin{itemdecl}
template<typename Generator>
Q operator()(Generator& g);
\end{itemdecl}

\begin{itemdescr}
\pnum
\effects
Equivalent to:
\tcode{return Q(base::operator()(g));}
\end{itemdescr}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can I get rid of these optimizations?
The requirements should be equivalent.
However, I don't see that Q::unit is required to be mp_units::one.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One of our contributors provided this code. I did a short review but never had time to analyze all the generators properly. If you see any issues, please do not hesitate to fix them or create a new Issue with the list of things to do.

Comment on lines +1818 to +1822
\item
Otherwise, no effect.
\begin{note}
UTF-8 text can't be copied to \tcode{CharT} output.
\end{note}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a constraint (that CharT be either char or char8_t).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants