Skip to content

Commit 0ee4229

Browse files
committed
remove leftpolar and rightpolar
1 parent cad4fbe commit 0ee4229

File tree

5 files changed

+5
-24
lines changed

5 files changed

+5
-24
lines changed

src/TensorKit.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ export inner, dot, norm, normalize, normalize!, tr
7070

7171
# factorizations
7272
export mul!, lmul!, rmul!, adjoint!, pinv, axpy!, axpby!
73-
export leftorth, rightorth, leftnull, rightnull, leftpolar, rightpolar,
74-
leftorth!, rightorth!, leftnull!, rightnull!, leftpolar!, rightpolar!,
73+
export leftorth, rightorth, leftnull, rightnull,
74+
leftorth!, rightorth!, leftnull!, rightnull!,
7575
tsvd!, tsvd, eigen, eigen!, eig, eig!, eigh, eigh!, exp, exp!,
7676
isposdef, isposdef!, ishermitian, isisometry, isunitary, sylvester, rank, cond
7777
export braid, braid!, permute, permute!, transpose, transpose!, twist, twist!, repartition,

src/tensors/factorizations/factorizations.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ export eig, eig!, eigh, eigh!
77
export tsvd, tsvd!, svdvals, svdvals!
88
export leftorth, leftorth!, rightorth, rightorth!
99
export leftnull, leftnull!, rightnull, rightnull!
10-
export leftpolar, leftpolar!, rightpolar, rightpolar!
1110
export copy_oftype, permutedcopy_oftype
1211
export TruncationScheme, notrunc, truncbelow, truncerr, truncdim, truncspace
1312

src/tensors/factorizations/implementations.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ function leftnull!(t::AbstractTensorMap;
6464
end
6565
end
6666

67-
leftpolar!(t::AbstractTensorMap; kwargs...) = left_polar!(t; kwargs...)
68-
6967
function rightorth!(t::AbstractTensorMap;
7068
alg::Union{LQ,LQpos,RQ,RQpos,SVD,SDD,Polar,Nothing}=nothing, kwargs...)
7169
InnerProductStyle(t) === EuclideanInnerProduct() ||
@@ -120,8 +118,6 @@ function rightnull!(t::AbstractTensorMap;
120118
end
121119
end
122120

123-
rightpolar!(t::AbstractTensorMap; kwargs...) = right_polar!(t; kwargs...)
124-
125121
# Eigenvalue decomposition
126122
# ------------------------
127123
function eigh!(t::AbstractTensorMap; trunc=notrunc(), kwargs...)

src/tensors/factorizations/interface.jl

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -182,20 +182,6 @@ Orthogonality requires `InnerProductStyle(t) <: HasInnerProduct`, and
182182
`InnerProductStyle(t) === EuclideanInnerProduct()`.
183183
""" rightnull, rightnull!
184184

185-
@doc """
186-
leftpolar(t::AbstractTensorMap, [(leftind, rightind)::Index2Tuple]; kwargs...) -> W, P
187-
leftpolar!(t::AbstractTensorMap; kwargs...) -> W, P
188-
189-
Compute the polar decomposition of tensor `t` as linear map from `rightind` to `leftind`.
190-
191-
If `leftind` and `rightind` are not specified, the current partition of left and right
192-
indices of `t` is used. In that case, less memory is allocated if one allows the data in
193-
`t` to be destroyed/overwritten, by using `eigh!(t)`.
194-
195-
See also [`rightpolar(!)`](@ref rightpolar).
196-
197-
""" leftpolar, leftpolar!
198-
199185
@doc """
200186
eigen(t::AbstractTensorMap, [(leftind, rightind)::Index2Tuple]; kwargs...) -> D, V
201187
eigen!(t::AbstractTensorMap; kwargs...) -> D, V
@@ -230,7 +216,7 @@ meaningless.
230216
""" isposdef(::AbstractTensorMap), isposdef!(::AbstractTensorMap)
231217

232218
for f in
233-
(:tsvd, :eig, :eigh, :eigen, :leftorth, :rightorth, :leftpolar, :rightpolar, :leftnull,
219+
(:tsvd, :eig, :eigh, :eigen, :leftorth, :rightorth, :left_polar, :right_polar, :leftnull,
234220
:rightnull, :isposdef)
235221
f! = Symbol(f, :!)
236222
@eval function $f(t::AbstractTensorMap, p::Index2Tuple; kwargs...)

test/tensors.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -686,8 +686,8 @@ for V in spacelist
686686
for T in (Float32, ComplexF64)
687687
tA = rand(T, V1 V3, V1 V3)
688688
tB = rand(T, V2 V4, V2 V4)
689-
tA = 3 // 2 * leftpolar(tA)[1]
690-
tB = 1 // 5 * leftpolar(tB)[1]
689+
tA = 3 // 2 * left_polar(tA)[1]
690+
tB = 1 // 5 * left_polar(tB)[1]
691691
tC = rand(T, V1 V3, V2 V4)
692692
t = @constinferred sylvester(tA, tB, tC)
693693
@test codomain(t) == V1 V3

0 commit comments

Comments
 (0)