Skip to content

Commit 530fcee

Browse files
authored
Update src/diagonal.jl
1 parent b642425 commit 530fcee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diagonal.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@ function pinv(D::Diagonal{T}, tol::Real) where T
911911
end
912912

913913
_ortho_eltype(T) = Base.promote_op(/, T, T)
914-
_ortho_eltype(T::Type{<:Number}) = typeof(one(T))
914+
_ortho_eltype(T::Type{<:Number}) = typeof(one(T)/one(T))
915915

916916
# TODO Docstrings for eigvals, eigvecs, eigen all mention permute, scale, sortby as keyword args
917917
# but not all of them below provide them. Do we need to fix that?

0 commit comments

Comments
 (0)