Skip to content

Commit 63542f0

Browse files
author
Katharine Hyatt
committed
update docstring and test
1 parent 7d649de commit 63542f0

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/interface/svd.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ truncation strategy is already embedded in the algorithm.
8686
possibly destroys the input matrix `A`. Always use the return value of the function
8787
as it may not always be possible to use the provided `USVᴴ` as output.
8888
89-
See also [`svd_trunc_no_error(!)`](@ref svd_trunc), [`svd_full(!)`](@ref svd_full),
89+
See also [`svd_trunc_no_error(!)`](@ref svd_trunc_no_error), [`svd_full(!)`](@ref svd_full),
9090
[`svd_compact(!)`](@ref svd_compact), [`svd_vals(!)`](@ref svd_vals),
9191
and [Truncations](@ref) for more information on truncation strategies.
9292
"""

test/genericlinearalgebra/svd.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,11 @@ end
145145
(rtol, maxrank) -> (; rtol, maxrank),
146146
(rtol, maxrank) -> truncrank(maxrank) & trunctol(; rtol),
147147
)
148-
U1, S1, V1ᴴ = svd_trunc(A; alg, trunc = trunc_fun(0.2, 1))
148+
U1, S1, V1ᴴ = svd_trunc_no_error(A; alg, trunc = trunc_fun(0.2, 1))
149149
@test length(diagview(S1)) == 1
150150
@test diagview(S1) diagview(S)[1:1]
151151

152-
U2, S2, V2ᴴ = svd_trunc(A; alg, trunc = trunc_fun(0.2, 3))
152+
U2, S2, V2ᴴ = svd_trunc_no_error(A; alg, trunc = trunc_fun(0.2, 3))
153153
@test length(diagview(S2)) == 2
154154
@test diagview(S2) diagview(S)[1:2]
155155
end

0 commit comments

Comments
 (0)