Skip to content

Conversation

@jmh530
Copy link
Contributor

@jmh530 jmh530 commented Aug 7, 2022

I just have the coefficients here and use mir.polynomial to produce the results as needed.

I set them up as enums so hopefully it is all CTFE-able.

I plan on making use of the Hermite polynomials for the Cornish-Fisher expansion in mir-stat, but I figured it could have use in more places than just there, which is why I added it to mir-algorithm, though I am indifferent as to which project or where in the project it would be.

@thewilsonator
Copy link
Contributor

Are we never going to need more than 10 of them?

@jmh530
Copy link
Contributor Author

jmh530 commented Aug 7, 2022 via email

See_also:
$(LINK2 https://en.wikipedia.org/wiki/Hermite_polynomials, Hermite polynomials)
+/
template hermiteCoefficients(size_t N)
Copy link
Member

Choose a reason for hiding this comment

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

It is good that it is a general purpose now. Could we make it GC CTFE-able function that returns an array of longs? That will compile much faster then template instantiation but will be still usable in @nogc CTFE code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@9il Done.

@9il 9il merged commit bbfcbd8 into libmir:master Aug 23, 2022
@jmh530
Copy link
Contributor Author

jmh530 commented Aug 23, 2022

Thanks, tagged new release.

@jmh530 jmh530 deleted the add-hermite branch August 23, 2022 12:52
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.

3 participants