Skip to content

Commit c2ecdf5

Browse files
committed
Remove bad line resetting k
1 parent 7f09c66 commit c2ecdf5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

ext/MatrixAlgebraKitCUDAExt/yacusolver.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,6 @@ function Xgesvdr!(A::StridedCuMatrix{T},
260260
minmn = min(m, n)
261261
jobu = length(U) == 0 ? 'N' : 'S'
262262
jobv = length(Vᴴ) == 0 ? 'N' : 'S'
263-
k = min(size(S)...)
264263
R = eltype(S)
265264
k < minmn || throw(DimensionMismatch("length of S ($k) must be less than the smaller dimension of A ($minmn)"))
266265
k + p < minmn || throw(DimensionMismatch("length of S ($k) plus oversampling ($p) must be less than the smaller dimension of A ($minmn)"))

0 commit comments

Comments
 (0)