Skip to content

Commit ba3595d

Browse files
committed
rename SVDViaPolar
1 parent 56453ad commit ba3595d

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/MatrixAlgebraKit.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export left_orth, right_orth, left_null, right_null
3232
export left_orth!, right_orth!, left_null!, right_null!
3333

3434
export Householder, Native_HouseholderQR, Native_HouseholderLQ
35-
export DivideAndConquer, SafeDivideAndConquer, QRIteration, Bisection, Jacobi, SVDPolar
35+
export DivideAndConquer, SafeDivideAndConquer, QRIteration, Bisection, Jacobi, SVDViaPolar
3636
export LAPACK_HouseholderQR, LAPACK_HouseholderLQ, LAPACK_Simple, LAPACK_Expert,
3737
LAPACK_QRIteration, LAPACK_Bisection, LAPACK_MultipleRelativelyRobustRepresentations,
3838
LAPACK_DivideAndConquer, LAPACK_Jacobi, LAPACK_SafeDivideAndConquer

src/implementations/svd.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ for (f, f_lapack!, Alg) in (
147147
(:qr_iteration, :gesvd!, :QRIteration),
148148
(:bisection, :gesvdx!, :Bisection),
149149
(:jacobi, :gesvdj!, :Jacobi),
150-
(:svd_polar, :gesvdp!, :SVDPolar),
150+
(:svd_polar, :gesvdp!, :SVDViaPolar),
151151
)
152152
f_svd! = Symbol(f, :_svd!)
153153
f_svd_full! = Symbol(f, :_svd_full!)
@@ -376,7 +376,7 @@ end
376376
for (algtype, newtype, drivertype) in (
377377
(:CUSOLVER_QRIteration, :QRIteration, :CUSOLVER),
378378
(:CUSOLVER_Jacobi, :Jacobi, :CUSOLVER),
379-
(:CUSOLVER_SVDPolar, :SVDPolar, :CUSOLVER),
379+
(:CUSOLVER_SVDPolar, :SVDViaPolar, :CUSOLVER),
380380
(:ROCSOLVER_QRIteration, :QRIteration, :ROCSOLVER),
381381
(:ROCSOLVER_Jacobi, :Jacobi, :ROCSOLVER),
382382
)

src/interface/decompositions.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ The `fixgauge` keyword can be used to toggle whether or not to fix the gauge of
161161
@algdef Jacobi
162162

163163
"""
164-
SVDPolar(; [driver], kwargs...)
164+
SVDViaPolar(; [driver], kwargs...)
165165
166166
Algorithm type to denote the algorithm for computing the singular value decomposition of a general
167167
matrix via Halley's iterative algorithm for the polar decomposition followed by the Hermitian
@@ -170,7 +170,7 @@ eigenvalue decomposition of the positive definite factor.
170170
The optional `driver` symbol can be used to choose between different implementations of this algorithm.
171171
The `fixgauge` keyword can be used to toggle whether or not to fix the gauge of the eigen or singular vectors, see also [`gaugefix!`](@ref).
172172
"""
173-
@algdef SVDPolar
173+
@algdef SVDViaPolar
174174

175175
for f in (:safe_divide_and_conquer, :divide_and_conquer, :qr_iteration, :bisection, :jacobi, :svd_polar)
176176
default_f_driver = Symbol(:default_, f, :_driver)

test/linearmap.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module LinearMaps
3838
# Using AbstractAlgorithm here would be ambiguous since neither A-type nor alg-type would
3939
# be strictly more specific.
4040
for f! in (:svd_compact!, :svd_full!)
41-
for Alg in (:SafeDivideAndConquer, :DivideAndConquer, :QRIteration, :Bisection, :Jacobi, :SVDPolar)
41+
for Alg in (:SafeDivideAndConquer, :DivideAndConquer, :QRIteration, :Bisection, :Jacobi, :SVDViaPolar)
4242
@eval MAK.$f!(A::LinearMap, USVᴴ, alg::MAK.$Alg) =
4343
LinearMap.(MAK.$f!(parent(A), parent.(USVᴴ), alg))
4444
end

0 commit comments

Comments
 (0)