JuliaArrays / JuliaArrays/BlockArrays.jl
Array(::BlockArray) can return non-Array array
Open
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 254
- Forks
- 39
- PR merge metrics
- No merged PRs in 30d
Description
For example:
julia> Array(BlockArray(spzeros(5), [1, 4]))
5-element SparseVector{Float64,Int64} with 0 stored entries
This also applies to SparseMatrixCSC.
Maybe rename what current Array(::BlockArray) does to unblock or something and then define Array(A::BlockArray) = Array(unblock(A))?
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 locating the Julia method implementing Array(::BlockArray) and the current conversion behavior for sparse vectors and SparseMatrixCSC. Confirm the desired behavior against the examples in the issue; done means Array(BlockArray(...)) returns an Array rather than a SparseVector or SparseMatrixCSC.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100