We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2525add commit 622b707Copy full SHA for 622b707
src/tensors/linalg.jl
@@ -299,7 +299,7 @@ function LinearAlgebra.rank(
299
r = 0 * dim(first(allunits(sectortype(t))))
300
dim(t) == 0 && return r
301
S = LinearAlgebra.svdvals(t)
302
- tol = max(atol, rtol * maximum(S.data))
+ tol = max(atol, rtol * maximum(parent(S)))
303
for (c, b) in pairs(S)
304
if !isempty(b)
305
r += dim(c) * count(>(tol), b)
0 commit comments