Skip to content

Commit 92250ef

Browse files
authored
Remove Array(::AbstractBlockArray) (#88)
* Remove Array(::AbstractBlockArray) * Remove Array from docs
1 parent 7558ffa commit 92250ef

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

docs/src/lib/public.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ blocksizes
3636
getblock
3737
getblock!
3838
setblock!
39-
Array
4039
blockcheckbounds
4140
```
4241

src/abstractblockarray.jl

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -275,27 +275,6 @@ end
275275
return true
276276
end
277277

278-
279-
"""
280-
Array(A::AbstractBlockArray)
281-
282-
Returns the array stored in `A` as a `Array`.
283-
284-
```jldoctest; setup = quote using BlockArrays end
285-
julia> A = BlockArray(ones(2,3), [1,1], [2,1])
286-
2×2-blocked 2×3 BlockArray{Float64,2}:
287-
1.0 1.0 │ 1.0
288-
──────────┼─────
289-
1.0 1.0 │ 1.0
290-
291-
julia> Array(A)
292-
2×3 Array{Float64,2}:
293-
1.0 1.0 1.0
294-
1.0 1.0 1.0
295-
```
296-
"""
297-
function Base.Array(A::AbstractBlockArray) end
298-
299278
# Convert to @generated...
300279
@propagate_inbounds Base.getindex( block_arr::AbstractBlockArray{T, N}, block::Block{N}) where {T,N} = getblock(block_arr, block.n...)
301280
@propagate_inbounds Base.setindex!(block_arr::AbstractBlockArray{T, N}, v, block::Block{N}) where {T,N} = setblock!(block_arr, v, block.n...)

0 commit comments

Comments
 (0)