Hilbert

The Hilbert matrix of order \(n\) is the \(n \times n\) matrix where

\[A(i,j) = \frac{1}{i+j+1}.\]

C++ API

void Hilbert(Matrix<F> &A, Int n)
void Hilbert(AbstractDistMatrix<F> &A, Int n)

C API

ElError ElHilbert_s(ElMatrix_s A, ElInt n)
ElError ElHilbert_d(ElMatrix_d A, ElInt n)
ElError ElHilbert_c(ElMatrix_c A, ElInt n)
ElError ElHilbert_z(ElMatrix_z A, ElInt n)
ElError ElHilbertDist_s(ElDistMatrix_s A, ElInt n)
ElError ElHilbertDist_d(ElDistMatrix_d A, ElInt n)
ElError ElHilbertDist_c(ElDistMatrix_c A, ElInt n)
ElError ElHilbertDist_z(ElDistMatrix_z A, ElInt n)

Python API

Hilbert(A, n)