diff --git a/src/structuredbroadcast.jl b/src/structuredbroadcast.jl index aa25a9d4..49e141a8 100644 --- a/src/structuredbroadcast.jl +++ b/src/structuredbroadcast.jl @@ -48,8 +48,6 @@ Broadcast.BroadcastStyle(::StructuredMatrixStyle{UnitUpperTriangular}, ::Structu Broadcast.BroadcastStyle(::StructuredMatrixStyle{<:Union{LowerTriangular,UnitLowerTriangular}}, ::StructuredMatrixStyle{<:Union{UpperTriangular,UnitUpperTriangular}}) = StructuredMatrixStyle{Matrix}() -Broadcast.BroadcastStyle(::StructuredMatrixStyle{<:Union{UpperTriangular,UnitUpperTriangular}}, ::StructuredMatrixStyle{<:Union{LowerTriangular,UnitLowerTriangular}}) = - StructuredMatrixStyle{Matrix}() # Make sure that `StructuredMatrixStyle{Matrix}` doesn't ever end up falling # through and give back `DefaultArrayStyle{2}` @@ -131,7 +129,7 @@ For instance, it is used to determine whether the output of `[(1,) (0,); (0,) (2,)]`. For this, we need to determine whether `(0,)` is considered to be zero. `iszero((0,))` falls back to `(0,) == zero((0,))` which fails as `zero(::Tuple{Int})` is not defined. However, -`iszerodefined(::Tuple{Int})` is `false` hence we falls back to the comparison +`iszerodefined(::Tuple{Int})` is `false` hence we fall back to the comparison `(0,) == 0` which returns `false` and decides that the correct output is `[(1,) (0,); (0,) (2,)]`. """