`svd` function: difference between the show instance and the output

Hello,

Look at Vt here:

julia> (U, SV, Vt) = svd(a)
SVD{Float64,Float64,Array{Float64,2}}
U factor:
2×2 Array{Float64,2}:
 -0.357373  -0.933962
 -0.933962   0.357373
singular values:
2-element Array{Float64,1}:
 6.242943383865534
 0.16018085356731407
Vt factor:
2×2 Array{Float64,2}:
 -0.506053  -0.862503
  0.862503  -0.506053

But when I type Vt, I get the transpose matrix:

julia> Vt
2×2 Adjoint{Float64,Array{Float64,2}}:
 -0.506053   0.862503
 -0.862503  -0.506053

Could you kindly explain me why?

1 Like

Ah ok I found the doc here. The svd function returns 4 objects actually, not 3. But only 3 are shown by the show instance.

1 Like