I tried to use pinv
on a transposed matrix and it surprisingly err’d out. What is the correct way to go about this?
julia> using LinearAlgebra
julia> A = rand(3,2)
3×2 Array{Float64,2}:
0.384492 0.512766
0.894825 0.866387
0.821847 0.945962
julia> pinv(A)
2×3 Array{Float64,2}:
-4.39446 5.15053 -2.33521
4.29807 -4.26865 2.63689
julia> pinv(A')
ERROR: MethodError: no method matching pinv(::Adjoint{Float64,Array{Float64,2}})
julia> pinv(transpose(A))
ERROR: MethodError: no method matching pinv(::Transpose{Float64,Array{Float64,2}})