Skip to content

Commit 3924f33

Browse files
ViralBShahjishnub
andauthored
Update src/triangular.jl
Co-authored-by: Jishnu Bhattacharya <[email protected]>
1 parent 9a9dc5e commit 3924f33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/triangular.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ Base.@constprop :aggressive @propagate_inbounds function getindex(A::Union{Lower
256256
_shouldforwardindex(A, b) ? A.data[b] : diagzero(A.data, b)
257257
end
258258

259-
_zero_triangular_half_str(T::Type) = T <: UpperOrLowerTriangular ? "lower" : "upper"
259+
_zero_triangular_half_str(T::Type) = T <: UpperOrUnitUpperTriangular ? "lower" : "upper"
260260

261261
@noinline function throw_nonzeroerror(T::DataType, @nospecialize(x), i, j)
262262
Ts = _zero_triangular_half_str(T)

0 commit comments

Comments
 (0)