Grcar

An \(n \times n\) Grcar matrix of order \(k\) is a banded Toeplitz matrix with its subdiagonal set to \(-1\) and both its main and \(k\) superdiagonals set to \(1\). It is a highly non-normal matrix whose pseudospectra is regularly visualized.

C++ API

void Grcar(Matrix<T> &A, Int n, Int k = 3)
void Grcar(AbstractDistMatrix<T> &A, Int n, Int k = 3)

C API

ElError ElGrcar_i(ElMatrix_i A, ElInt n, ElInt k)
ElError ElGrcar_s(ElMatrix_s A, ElInt n, ElInt k)
ElError ElGrcar_d(ElMatrix_d A, ElInt n, ElInt k)
ElError ElGrcar_c(ElMatrix_c A, ElInt n, ElInt k)
ElError ElGrcar_z(ElMatrix_z A, ElInt n, ElInt k)
ElError ElGrcarDist_i(ElDistMatrix_i A, ElInt n, ElInt k)
ElError ElGrcarDist_s(ElDistMatrix_s A, ElInt n, ElInt k)
ElError ElGrcarDist_d(ElDistMatrix_d A, ElInt n, ElInt k)
ElError ElGrcarDist_c(ElDistMatrix_c A, ElInt n, ElInt k)
ElError ElGrcarDist_z(ElDistMatrix_z A, ElInt n, ElInt k)

Python API

Grcar(A, n, k=3)