JuliaApproximation / JuliaApproximation/ApproxFun.jl
bus error when trying to construct a piecewise discontinuous Fun
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 559
- Forks
- 71
- PR merge metrics
- No merged PRs in 30d
Description
check this simple example:
using ApproxFun
d = PiecewiseSegment([-1,0,1.])
i = Fun(d) # identity
abs(i), sign(i) # work
Fun(sign, d) # crashes Julia with Bus error: 10
(i should not also that there is almost no documentation of PiecewiseSegment. is this not supposed to be used? i would in fact need it in my actual problem, in order to implement fast interpolation and integration of piecewise defined functions with known locations of discontinuities)
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
Start by running the provided PiecewiseSegment and Fun example to reproduce the bus error, then inspect the PiecewiseSegment and discontinuous Fun construction paths. Done means the example no longer crashes Julia and the piecewise sign function can be constructed; the payload names no files or tests to run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100