Skip to content

Commit 0d9989c

Browse files
committed
fix formatting
1 parent 5b23753 commit 0d9989c

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

src/yalapack.jl

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2157,7 +2157,7 @@ for (gesvd, gesdd, gesvdx, gejsv, gesvj, elty, relty) in
21572157
end
21582158
#! format: on
21592159
if i == 1
2160-
chklapackerror(info[]) # bail out if even the workspace query failed
2160+
chklapackerror(info[]) # bail out if even the workspace query failed
21612161
# Work around issue with truncated Float32 representation of lwork in
21622162
# sgesdd by using nextfloat. See
21632163
# http://icl.cs.utk.edu/lapack-forum/viewtopic.php?f=13&t=4587&p=11036&hilit=sgesdd#p11036
@@ -2192,13 +2192,14 @@ for (gesvd, gesdd, gesvdx, gejsv, gesvj, elty, relty) in
21922192
else
21932193
rwork = nothing
21942194
end
2195-
(S, U, Vᴴ), info = _gesdd_body!(copy(A), S, U, Vᴴ, work, rwork)
2195+
Ac = copy(A)
2196+
(S, U, Vᴴ), info = _gesdd_body!(Ac, S, U, Vᴴ, work, rwork)
21962197
if info > 0
21972198
(S, U, Vᴴ), info = _gesvd_body!(A, S, U, Vᴴ, work, rwork)
2198-
end
2199-
chklapackerror(info)
2199+
end
2200+
chklapackerror(info)
22002201
return S, U, Vᴴ
2201-
end
2202+
end
22022203
#! format: off
22032204
function gesvdx!(
22042205
A::AbstractMatrix{$elty},

0 commit comments

Comments
 (0)