JuliaArrays / JuliaArrays/BlockArrays.jl

Array(::BlockArray) can return non-Array array

Open
#69 0 comments 3 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.