ToeplitzMatrices.jl icon indicating copy to clipboard operation
ToeplitzMatrices.jl copied to clipboard

copy(A::Toeplitz) returns a regular Array

Open BenjaminRemez opened this issue 3 years ago • 0 comments

Calling copy(A) for A::Toeplitz falls back to copy(AbstractArray), and then returns a dense, populated Array, instead of a new Toeplitz.

(This has an interesting side effect: it allows LinearAlgebra.det(A) to run successfully, since a copy during that routine causes a "densification" of A, whereas det(C::Circulant) fails, as Circulant implements a specialized copy method. This might we a separate wider issue to resolve.)

BenjaminRemez avatar Jul 02 '22 19:07 BenjaminRemez