Skip to content

Commit bd97efd

Browse files
committed
change one more oneunit to unitspace
1 parent 313df53 commit bd97efd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tensors/diagonal.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ function LinearAlgebra.pinv(d::DiagonalTensorMap; kwargs...)
306306
if iszero(atol)
307307
rtol = get(kwargs, :rtol, zero(real(T)))
308308
else
309-
rtol = sqrt(eps(real(float(oneunit(T))))) * length(d.data)
309+
rtol = sqrt(eps(real(float(unitspace(T))))) * length(d.data)
310310
end
311311
pdata = let tol = max(atol, rtol * maximum(abs, d.data))
312312
map(x -> abs(x) < tol ? zero(x) : pinv(x), d.data)

0 commit comments

Comments
 (0)