JuliaApproximation / JuliaApproximation/ContinuumArrays.jl
Expansion short cut
Open
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 31
- Forks
- 6
- Avg merge
- 9d 22h
- Merged PRs (30d)
- 2
Description
A common pattern to expand a function is:
P = Legendre()
x = axes(P,1)
f = P / P \ exp.(x)
But perhaps a shortcut would be useful so this is one line:
expand(Legendre(), exp)
That is, add the function:
function expand(P, f)
x = axes(P,1)
P / P \ f.(x)
end
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no file or test. Start by locating the Legendre type and the existing expansion-related entry points, then compare the proposed expand(P, f) call with the axes(P,1), broadcasting, and solve expressions shown. Done means the one-line example works and existing behavior remains covered by the package checks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- backend-api-design
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100