From 0c8aa2a77155de895880678c8de0db1a3283ea9a Mon Sep 17 00:00:00 2001 From: Martin Holters Date: Tue, 1 Aug 2017 09:31:28 +0200 Subject: [PATCH] Add pinv(::RowVector) --- base/linalg/generic.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/base/linalg/generic.jl b/base/linalg/generic.jl index 0da8517f8a536..c5864120b6875 100644 --- a/base/linalg/generic.jl +++ b/base/linalg/generic.jl @@ -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)