diff --git a/test/companion.jl b/test/companion.jl index e3813c6..75b915c 100644 --- a/test/companion.jl +++ b/test/companion.jl @@ -48,6 +48,12 @@ A = copy(B) @test A ≈ B * Zm +# OffsetMatrix * companion + +B = OffsetArray(randn(size(B)), 9, -5) # test non-1-based indexing and AbstractMatrix +@test_throws ArgumentError mul!(A, B, Z) + + # Polynomial construction using Polynomials p = Polynomial([-1,0,1])