Skip to content

Commit

Permalink
Add pinv(::RowVector)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinholters committed Aug 1, 2017
1 parent 7926b11 commit 0c8aa2a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions base/linalg/generic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,8 @@ function pinv(v::AbstractVector{T}, tol::Real=real(zero(T))) where T
return res
end

pinv(v::RowVector{T}, tol::Real=real(zero(T))) where {T} = pinv(v', tol)'

"""
\\(A, B)
Expand Down

0 comments on commit 0c8aa2a

Please sign in to comment.