From 64238d16d65da4dfbb59e884f966165d28d16d71 Mon Sep 17 00:00:00 2001 From: Daniel Karrasch Date: Sat, 19 Feb 2022 17:25:30 +0100 Subject: [PATCH] triu and tril tests --- test/runtests.jl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/runtests.jl b/test/runtests.jl index 329d2b0..5f40f41 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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)