Skip to content

Commit 22a70ba

Browse files
authored
fewer specialized methods for rowvec (#331)
1 parent 339d1f8 commit 22a70ba

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/LinearAlgebra/rowvector.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ parent(rowvec::RowVector) = rowvec.vec
5555
@inline length(rowvec::RowVector) = length(rowvec.vec)
5656
@inline size(rowvec::RowVector) = (1, length(rowvec.vec))
5757
@inline axes(rowvec::RowVector) = (Base.OneTo(1), axes(rowvec.vec, 1))
58-
IndexStyle(::RowVector) = IndexLinear()
5958
IndexStyle(::Type{<:RowVector}) = IndexLinear()
6059

6160
@propagate_inbounds getindex(rowvec::RowVector, i::Int) = rowvec.vec[i]
@@ -75,11 +74,8 @@ to_vec(x) = x
7574

7675
# Horizontal concatenation #
7776

78-
@inline hcat(X::RowVector...) = RowVector(mapreduce(parent, vcat, X))
7977
@inline hcat(X::Union{RowVector,Number}...) = RowVector(mapreduce(to_vec, vcat, X))
8078

81-
@inline typed_hcat(::Type{T}, X::RowVector...) where {T} =
82-
RowVector(Base.typed_vcat(T, to_vecs(X...)...))
8379
@inline typed_hcat(::Type{T}, X::Union{RowVector,Number}...) where {T} =
8480
RowVector(Base.typed_vcat(T, to_vecs(X...)...))
8581

0 commit comments

Comments
 (0)