Skip to content

Commit 57ac0eb

Browse files
authored
Make parentof_applytri fully type-stable (#1243)
This should make each branch in `applytri` return the same type, as the `UpperTriangular` or `LowerTriangular` wrapper will be removed.
1 parent 880a9fe commit 57ac0eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/symmetric.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ function applytri(f, A::HermOrSym, B::HermOrSym)
359359
end
360360
_parent_tri(U::UpperOrLowerTriangular) = parent(U)
361361
_parent_tri(U) = U
362-
parentof_applytri(f, args...) = _parent_tri(applytri(f, args...))
362+
parentof_applytri(f, args...) = applytri(_parent_trif, args...)
363363

364364
isdiag(A::HermOrSym) = applytri(isdiag, A)
365365

0 commit comments

Comments
 (0)