Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Toeplitz(A::AbstractMatrix) constructor that projects onto a Toeplitz matrix #32

Closed
dlfivefifty opened this issue Nov 27, 2017 · 0 comments

Comments

@dlfivefifty
Copy link
Member

In Base, it's always the convention that MyMatrix(A) projects A onto the appropriate space: for example, we have Diagonal(A) which ignores off-diagonal entries, and similarly, UpperTriangular(A) and Symmetric(A).

I propose Toeplitz(A::AbstractMatrix) takes the first row and column of A and creates a Toeplitz matrix. This has the benefit that it would automatically support FillArrays.jl syntax Toeplitz(Zeros(n,m)), Toeplitz(Fill(x,n,m)) and Toeplitz(Eye(n)) for creating zero, constant and identity Toeplitz matrices, without needing to depend on FillArrays.jl.

Note that convert(Toeplitz, A) should throw an error if A is not already Toeplitz.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant