Skip to content

Commit

Permalink
triu and tril tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dkarrasch committed Feb 19, 2022
1 parent 8679d6a commit 64238d1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,15 @@ end
for T in (TU, TL)
@test inv(T)::TriangularToeplitz inv(Matrix(T))
end
T = Toeplitz(A)
TU = triu(T)
@test TU isa TriangularToeplitz
@test istriu(TU)
@test TU == Toeplitz(triu(A))
TL = tril(T)
@test TL isa TriangularToeplitz
@test istril(TL)
@test TL == Toeplitz(tril(A))
for n in (65, 128)
A = randn(n, n)
TU = TriangularToeplitz(A, :U)
Expand Down

0 comments on commit 64238d1

Please sign in to comment.