SciML / PolyChaos.jl

A Julia package to construct orthogonal polynomials, their quadrature rules, and use it with polynomial chaos expansions.
https://docs.sciml.ai/PolyChaos/stable/
MIT License
115 stars 26 forks source link

Construct OrthoPoly from corresponding measure #100

Closed FHoltorf closed 1 year ago

FHoltorf commented 1 year ago

In https://github.com/SciML/ModelOrderReduction.jl/pull/27 we would like to construct CanonicalOrthoPolys and generic OrthoPolys from the corresponding Measures. This PR seeks to enable that by defining suitable constructors. Also, it changes the inner constructors to outer to promote extensibility.

Best, Flemming

codecov[bot] commented 1 year ago

Codecov Report

Merging #100 (e6a1b12) into master (2b3d41c) will decrease coverage by 11.95%. The diff coverage is 97.97%.

@@             Coverage Diff             @@
##           master     #100       +/-   ##
===========================================
- Coverage   90.25%   78.30%   -11.96%     
===========================================
  Files          15       15               
  Lines         965     1005       +40     
===========================================
- Hits          871      787       -84     
- Misses         94      218      +124     
Impacted Files Coverage Δ
src/typesOrthoPolys.jl 97.82% <97.97%> (-1.14%) :arrow_down:
src/polynomial_chaos.jl 20.37% <0.00%> (-56.94%) :arrow_down:
src/show.jl 20.00% <0.00%> (-27.78%) :arrow_down:
src/recurrence_coefficients_monic.jl 90.47% <0.00%> (-7.15%) :arrow_down:
src/typesQuad.jl 94.73% <0.00%> (+4.73%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more