We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
tsvd
1 parent f3e7687 commit 950fcadCopy full SHA for 950fcad
1 file changed
src/grassmann.jl
@@ -31,8 +31,8 @@ end
31
32
# output type of U, S, V in tsvd
33
function _tsvd_types(Z::AbstractTensorMap)
34
- TUSV = Core.Compiler.return_type(tsvd, Tuple{typeof(Z)})
35
- TU, TS, TV, = TUSV.types
+ TUSV = Core.Compiler.return_type(svd_compact, Tuple{typeof(Z)})
+ TU, TS, TV = TUSV.types
36
return TU, TS, TV
37
end
38
@@ -59,7 +59,7 @@ function Base.getproperty(Δ::GrassmannTangent, sym::Symbol)
59
elseif sym ∈ (:U, :S, :V)
60
v = Base.getfield(Δ, sym)
61
v !== nothing && return v
62
- U, S, V, = svd_compact(Δ.Z)
+ U, S, V = svd_compact(Δ.Z)
63
Base.setfield!(Δ, :U, U)
64
Base.setfield!(Δ, :S, S)
65
Base.setfield!(Δ, :V, V)
0 commit comments