Skip to content

Export \biC as an alias for tocanonical #576

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

Merged
merged 2 commits into from
Aug 30, 2023

Conversation

jishnub
Copy link
Member

@jishnub jishnub commented Aug 29, 2023

After this,

julia> 𝑪(0..0.5, 0)
-1.0

julia> 𝑪(0..0.5, 0.5)
1.0

This is quite a useful operation, and it's helpful to have a shortcut. The plan is to use this in displaying spaces where the variable needs to be mapped to the canonical domain.

Suggestions for a better symbol are welcome. I have picked this arbitrarily, thinking that it's unlikely to clash with other packages.

Also, this changes the displayed form for Segment to make it round-trippable.

julia> Segment(0, 1)
Segment(0.0, 1.0)

@codecov
Copy link

codecov bot commented Aug 29, 2023

Codecov Report

Patch coverage: 18.18% and project coverage change: -0.04% ⚠️

Comparison is base (c31337a) 27.53% compared to head (e594605) 27.49%.
Report is 12 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #576      +/-   ##
==========================================
- Coverage   27.53%   27.49%   -0.04%     
==========================================
  Files          80       80              
  Lines        8379     8387       +8     
==========================================
- Hits         2307     2306       -1     
- Misses       6072     6081       +9     
Files Changed Coverage Δ
src/Domain.jl 44.28% <ø> (ø)
src/Operators/Operator.jl 51.98% <0.00%> (ø)
src/Operators/banded/CalculusOperator.jl 17.21% <0.00%> (ø)
src/Spaces/SumSpace.jl 31.98% <0.00%> (ø)
src/specialfunctions.jl 16.77% <0.00%> (ø)
src/Operators/general/InterlaceOperator.jl 23.17% <26.31%> (-0.30%) ⬇️
src/show.jl 62.96% <100.00%> (ø)

... and 2 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jishnub jishnub merged commit 4e93fb6 into JuliaApproximation:master Aug 30, 2023
@jishnub jishnub deleted the tocanonicalshortcut branch August 30, 2023 02:39
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.

1 participant