Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

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

$
0
0

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?

2 posts - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 2795

Latest Images

Trending Articles



Latest Images