JuliaApproximation / ApproxFunBase.jl

Core functionality of ApproxFun
MIT License
12 stars 13 forks source link

Fix cumsum for piecewise spaces #560

Closed jishnub closed 1 year ago

jishnub commented 1 year ago

Fix https://github.com/JuliaApproximation/ApproxFun.jl/issues/905 After this,

julia> x = Fun()
Fun(Chebyshev(), [0.0, 1.0])

julia> cumsum(sign(x))
Fun(Chebyshev(the segment [-1.0,-0.0]) ⨄ Chebyshev(the segment [-0.0,1.0]), [-0.5, -0.5, -0.5, 0.5])
codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 31.25% and project coverage change: -0.03% :warning:

Comparison is base (c31337a) 27.53% compared to head (a923d18) 27.51%. Report is 1 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #560 +/- ## ========================================== - Coverage 27.53% 27.51% -0.03% ========================================== Files 80 80 Lines 8379 8382 +3 ========================================== - Hits 2307 2306 -1 - Misses 6072 6076 +4 ``` | [Files Changed](https://app.codecov.io/gh/JuliaApproximation/ApproxFunBase.jl/pull/560?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=JuliaApproximation) | Coverage Δ | | |---|---|---| | [src/Spaces/SumSpace.jl](https://app.codecov.io/gh/JuliaApproximation/ApproxFunBase.jl/pull/560?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=JuliaApproximation#diff-c3JjL1NwYWNlcy9TdW1TcGFjZS5qbA==) | `31.98% <0.00%> (ø)` | | | [src/Operators/general/InterlaceOperator.jl](https://app.codecov.io/gh/JuliaApproximation/ApproxFunBase.jl/pull/560?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=JuliaApproximation#diff-c3JjL09wZXJhdG9ycy9nZW5lcmFsL0ludGVybGFjZU9wZXJhdG9yLmps) | `23.56% <50.00%> (+0.09%)` | :arrow_up: | ... and [2 files with indirect coverage changes](https://app.codecov.io/gh/JuliaApproximation/ApproxFunBase.jl/pull/560/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=JuliaApproximation)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.