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.
one
rank
1 parent 6e990e2 commit b114f64Copy full SHA for b114f64
src/tensors/linalg.jl
@@ -296,7 +296,7 @@ function LinearAlgebra.rank(
296
t::AbstractTensorMap;
297
atol::Real = 0, rtol::Real = atol > 0 ? 0 : _default_rtol(t)
298
)
299
- r = dim(one(sectortype(t))) * 0
+ r = zero(real(sectorscalartype(sectortype(t))))
300
dim(t) == 0 && return r
301
S = LinearAlgebra.svdvals(t)
302
tol = max(atol, rtol * maximum(first, values(S)))
0 commit comments