Pei

An \(n \times n\) Pei matrix with parameter \(\alpha\) has a main diagonal of \(\alpha+1\) and all other entries set to \(1\).

C++ API

void Pei(Matrix<T> &P, Int n, T alpha)
void Pei(AbstractDistMatrix<T> &P, Int n, T alpha)

C API

ElError ElPei_i(ElMatrix_i P, ElInt n, ElInt alpha)
ElError ElPei_s(ElMatrix_s P, ElInt n, float alpha)
ElError ElPei_d(ElMatrix_d P, ElInt n, double alpha)
ElError ElPei_c(ElMatrix_c P, ElInt n, complex_float alpha)
ElError ElPei_z(ElMatrix_z P, ElInt n, complex_double alpha)
ElError ElPeiDist_i(ElDistMatrix_i P, ElInt n, ElInt alpha)
ElError ElPeiDist_s(ElDistMatrix_s P, ElInt n, float alpha)
ElError ElPeiDist_d(ElDistMatrix_d P, ElInt n, double alpha)
ElError ElPeiDist_c(ElDistMatrix_c P, ElInt n, complex_float alpha)
ElError ElPeiDist_z(ElDistMatrix_z P, ElInt n, complex_double alpha)

Python API

Pei(P, n, alpha)