mcabbott / mcabbott/InTheRed.jl
Error from uninitialised array of BigFloat
Open
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 4
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
julia> x = BigFloat[1, 2]
2-element Vector{BigFloat}:
1.0 # ┝━━━━━━━━━━━━━━━━╸
2.0 # ┝━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
julia> y = similar(x)
2-element Vector{BigFloat}:
Error showing value of type Vector{BigFloat}:
ERROR: UndefRefError: access to undefined reference
Stacktrace:
[1] getindex
@ ./essentials.jl:917 [inlined]
[2] _mapreduce(f::Base.ExtremaMap{…}, op::typeof(Base._extrema_rf), ::IndexLinear, A::Vector{…})
@ Base ./reduce.jl:435
[3] _mapreduce_dim(f::Function, op::Function, ::Base._InitialValue, A::Vector{BigFloat}, ::Colon)
@ Base ./reducedim.jl:337
[4] mapreduce
@ ./reducedim.jl:329 [inlined]
[5] _extrema(f::Function, a::Vector{BigFloat}, ::Colon; kw::@Kwargs{})
@ Base ./reducedim.jl:987
[6] extrema
@ ./reducedim.jl:983 [inlined]
[7] print_matrix(io::IOContext{…}, X::AbstractVector{…}, pre::String, sep::String, post::String, hdots::String, vdots::String, ddots::String, hmod::Int64, vmod::Int64)
@ InTheRed ~/.julia/dev/InTheRed/src/InTheRed.jl:327
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
Reproduce the Julia session with x = BigFloat[1, 2] and y = similar(x), then inspect src/InTheRed.jl around print_matrix at line 327. Determine how the formatter handles the undefined elements and verify that displaying the uninitialised array completes without the reported UndefRefError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 42/100