Skip to content

Commit 622b707

Browse files
kshyattlkdvos
andauthored
Update src/tensors/linalg.jl
Co-authored-by: Lukas Devos <[email protected]>
1 parent 2525add commit 622b707

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tensors/linalg.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ function LinearAlgebra.rank(
299299
r = 0 * dim(first(allunits(sectortype(t))))
300300
dim(t) == 0 && return r
301301
S = LinearAlgebra.svdvals(t)
302-
tol = max(atol, rtol * maximum(S.data))
302+
tol = max(atol, rtol * maximum(parent(S)))
303303
for (c, b) in pairs(S)
304304
if !isempty(b)
305305
r += dim(c) * count(>(tol), b)

0 commit comments

Comments
 (0)