Skip to content

Commit 697c2ed

Browse files
committed
fix a method ambiguity in RowVector
1 parent 932fe3b commit 697c2ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

base/linalg/rowvector.jl

+2-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ parent(rowvec::RowVector) = rowvec.vec
8787
@inline size(rowvec::RowVector, d) = ifelse(d==2, length(rowvec.vec), 1)
8888
@inline indices(rowvec::RowVector) = (Base.OneTo(1), indices(rowvec.vec)[1])
8989
@inline indices(rowvec::RowVector, d) = ifelse(d == 2, indices(rowvec.vec)[1], Base.OneTo(1))
90-
linearindexing{V<:RowVector}(::Union{V,Type{V}}) = LinearFast()
90+
linearindexing(::RowVector) = LinearFast()
91+
linearindexing{V<:RowVector}(::Type{V}) = LinearFast()
9192

9293
@propagate_inbounds getindex(rowvec::RowVector, i) = transpose(rowvec.vec[i])
9394
@propagate_inbounds setindex!(rowvec::RowVector, v, i) = setindex!(rowvec.vec, transpose(v), i)

0 commit comments

Comments
 (0)