Skip to content

Commit 91f9f6f

Browse files
authored
remove AbstractArray and rank specializations (#262)
1 parent 80b1f5c commit 91f9f6f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/FillArrays.jl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ getindex_value
171171

172172
@inline getindex_value(F::Fill) = F.value
173173

174-
AbstractArray{T}(F::Fill{V,N}) where {T,V,N} = Fill{T}(convert(T, F.value)::T, F.axes)
175174
AbstractArray{T,N}(F::Fill{V,N}) where {T,V,N} = Fill{T}(convert(T, F.value)::T, F.axes)
176175
AbstractFill{T}(F::AbstractFill) where T = AbstractArray{T}(F)
177176
AbstractFill{T,N}(F::AbstractFill) where {T,N} = AbstractArray{T,N}(F)
@@ -339,11 +338,6 @@ fillsimilar(a::Ones{T}, axes...) where T = Ones{T}(axes...)
339338
fillsimilar(a::Zeros{T}, axes...) where T = Zeros{T}(axes...)
340339
fillsimilar(a::AbstractFill, axes...) = Fill(getindex_value(a), axes...)
341340

342-
343-
rank(F::Zeros) = 0
344-
rank(F::Ones) = 1
345-
346-
347341
struct RectDiagonal{T,V<:AbstractVector{T},Axes<:Tuple{Vararg{AbstractUnitRange,2}}} <: AbstractMatrix{T}
348342
diag::V
349343
axes::Axes

0 commit comments

Comments
 (0)