rluce / tlcomp

Computing with Toeplitz and Toeplitz-like matrices in Matlab
MIT License
1 stars 0 forks source link

Let ToepMat constructor accept the syntax ToepMat(A) for general A #12

Open rluce opened 6 years ago

rluce commented 6 years ago

Assume given a dense Toeplitz matrix A, then it would be nice to convert it to a |ToepMat| object by

ToepMat(A)

instead the cumbersome ToepMat(A(:,1), A(1,:)).

Even if A is not Toeplitz, the constructor could return the closest Toeplitz matrix to A in the fro norm. Note that this optimization problem is solved by taking means along the diagnoals of A.