Skip to content

Commit

Permalink
Remove IndexStyle specialization for AdjOrTransAbsMat (#55077)
Browse files Browse the repository at this point in the history
Since `IndexStyle` falls back to `IndexCartesian` by default, this
specialization is unnecessary.
  • Loading branch information
jishnub authored Jul 10, 2024
1 parent ec013f1 commit 24535f6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion stdlib/LinearAlgebra/src/adjtrans.jl
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,6 @@ size(A::AdjOrTransAbsMat) = reverse(size(A.parent))
axes(v::AdjOrTransAbsVec) = (axes(v.parent,2), axes(v.parent)...)
axes(A::AdjOrTransAbsMat) = reverse(axes(A.parent))
IndexStyle(::Type{<:AdjOrTransAbsVec}) = IndexLinear()
IndexStyle(::Type{<:AdjOrTransAbsMat}) = IndexCartesian()
@propagate_inbounds Base.isassigned(v::AdjOrTransAbsVec, i::Int) = isassigned(v.parent, i-1+first(axes(v.parent)[1]))
@propagate_inbounds Base.isassigned(v::AdjOrTransAbsMat, i::Int, j::Int) = isassigned(v.parent, j, i)
@propagate_inbounds getindex(v::AdjOrTransAbsVec{T}, i::Int) where {T} = wrapperop(v)(v.parent[i-1+first(axes(v.parent)[1])])::T
Expand Down

0 comments on commit 24535f6

Please sign in to comment.