Skip to content

Commit

Permalink
Dropped type constraint in svd
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeyT1994 committed Oct 19, 2023
1 parent ad28a5c commit 189abac
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/tensor_operations/matrix_decomposition.jl
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,7 @@ Utrunc2, Strunc2, Vtrunc2 = svd(A, i, k; cutoff=1e-10);
See also: [`factorize`](@ref), [`eigen`](@ref)
"""
function svd(
A::ITensor,
Linds...;
leftdir::Union{Nothing,ITensors.Arrow}=nothing,
rightdir::Union{Nothing,ITensors.Arrow}=nothing,
kwargs...,
)
function svd(A::ITensor, Linds...; leftdir=nothing, rightdir=nothing, kwargs...)
utags::TagSet = get(kwargs, :lefttags, get(kwargs, :utags, "Link,u"))
vtags::TagSet = get(kwargs, :righttags, get(kwargs, :vtags, "Link,v"))

Expand Down

0 comments on commit 189abac

Please sign in to comment.