-
Notifications
You must be signed in to change notification settings - Fork 25
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
Adding functions to real128 #140
Conversation
.vscode/settings.json
Outdated
@@ -6,5 +6,8 @@ | |||
"doc/doxygen/latex/": true, | |||
"doc/doxygen/xml/": true, | |||
"doc/sphinx/_build/": true | |||
}, |
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.
Could you please remove this change?
include/mp++/real128.hpp
Outdated
} | ||
/// In-place lgamma function | ||
/** | ||
* This method will set \p this to the value of the natural logarithm of its gamma function |
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.
A period is missing at the end here.
include/mp++/real128.hpp
Outdated
|
||
/** @} */ | ||
|
||
/** @defgroup real128_trig real128_trig |
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 should probably be real128_hyper
rather than real128_trig
? The doxygen group should then also be imported in the sphinx documentation, in doc/sphinx/real128.rst
(the same way it's done for the trigonometric functions, for instance).
include/mp++/real128.hpp
Outdated
return x.erf(); | ||
} | ||
|
||
/// Natural logarithm of the gamma funcion |
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.
In the real class, gamma functions and related are grouped into their own group. E.g., see:
https://bluescarni.github.io/mppp/real.html#gamma-functions
Could you do the same with real128's lgamma function?
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.
I noted you use gamma and not tgamma as a name for the gamma function (as opposed to whats in quadmath and std). Is there a reason?
Thanks, it looks good! I just have some minor doc nitpicks. |
doing this PR I developed some questions I will log here, they may be irrelevant:
|
"doc/doxygen/latex/": true, | ||
"doc/doxygen/xml/": true, | ||
"doc/sphinx/_build/": true | ||
"doc/doxygen/html/": true |
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.
@darioizzo seems like something else might have slipped in here?
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.
so also that is to be removed?
"doc/doxygen/html/": true
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.
No, what I mean is that the .vscode/settings.json
file shouldn't show up at all in the PR diff because I don't think there are any modifications needed to it in this PR. What I complained about originally was a modification to the file which (I believe) is done automatically by VScode each time you open the workspace (because of some extension which is installed on your side I believe).
Maybe you can just copy paste the version from master
?
|
@darioizzo I'll go ahead and merge this, I'll fix the vscode file issue later. Thanks! |
Thanks!! Sto a Roma questa settimana. Afk:)
On 7 May 2018 2:35 pm, "Francesco Biscani" <notifications@github.com> wrote:
@darioizzo <https://github.com/darioizzo> I'll go ahead and merge this,
I'll fix the vscode file issue later. Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#140 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ADLEbxFOwDwJe2bOsurOvBc5oajpJnVDks5twD-qgaJpZM4TsR12>
.
|
real128 was missing some functions (e.g. tan, erf etc..) that are found necessary to answer, for example, to the cancellation issue in darioizzo/audi#29
in this PR tan, inverse trig, erf are added to allow the class to be used to build a quad precision differential algebra (audi)