Wilkinson

A Wilkinson matrix of order \(k\) is a tridiagonal matrix with diagonal

\[[k,k-1,k-2,...,1,0,1,...,k-2,k-1,k],\]

and sub- and super-diagonals of all ones.

C++ API

void Wilkinson(Matrix<T> &W, Int k)
void Wilkinson(AbstractDistMatrix<T> &W, Int k)

C API

ElError ElWilkinson_i(ElMatrix_i W, ElInt k)
ElError ElWilkinson_s(ElMatrix_s W, ElInt k)
ElError ElWilkinson_d(ElMatrix_d W, ElInt k)
ElError ElWilkinson_c(ElMatrix_c W, ElInt k)
ElError ElWilkinson_z(ElMatrix_z W, ElInt k)
ElError ElWilkinsonDist_i(ElDistMatrix_i W, ElInt k)
ElError ElWilkinsonDist_s(ElDistMatrix_s W, ElInt k)
ElError ElWilkinsonDist_d(ElDistMatrix_d W, ElInt k)
ElError ElWilkinsonDist_c(ElDistMatrix_c W, ElInt k)
ElError ElWilkinsonDist_z(ElDistMatrix_z W, ElInt k)

Python API

Wilkinson(W, k)