TriW

An \(n \times n\) TriW matrix of order \(k\) is a banded upper-triangular matrix with its main diagonal set to one and its \(k\) super-diagonals each set to some value \(\alpha\). This family of matrices was regularly employed by Wilkinson.

C++ API

void TriW(Matrix<T> &A, Int n, T alpha, Int k)
void TriW(AbstractDistMatrix<T> &A, Int n, T alpha, Int k)

C API

ElError ElTriW_i(ElMatrix_i A, ElInt n, ElInt alpha, ElInt k)
ElError ElTriW_s(ElMatrix_s A, ElInt n, float alpha, ElInt k)
ElError ElTriW_d(ElMatrix_d A, ElInt n, double alpha, ElInt k)
ElError ElTriW_c(ElMatrix_c A, ElInt n, complex_float alpha, ElInt k)
ElError ElTriW_z(ElMatrix_z A, ElInt n, complex_double alpha, ElInt k)
ElError ElTriWDist_i(ElDistMatrix_i A, ElInt n, ElInt alpha, ElInt k)
ElError ElTriWDist_s(ElDistMatrix_s A, ElInt n, float alpha, ElInt k)
ElError ElTriWDist_d(ElDistMatrix_d A, ElInt n, double alpha, ElInt k)
ElError ElTriWDist_c(ElDistMatrix_c A, ElInt n, complex_float alpha, ElInt k)
ElError ElTriWDist_z(ElDistMatrix_z A, ElInt n, complex_double alpha, ElInt k)

Python API

TriW(A, n, alpha, k)