Normal uniform spectrum

These routines sample a diagonal matrix from the specified ball in the complex plane, \(B_{\text{radius}}(\text{center})\), and then perform a similarity transformation using a random Householder transform.

C++ API

void NormalUniformSpectrum(Matrix<Complex<Real>> &A, Int n, Complex<Real> center = 0, Real radius = 1)
void NormalUniformSpectrum( ElementalMatrix<Complex<Real>& A, Int n, Complex<Real> center=0, Real radius=1 )

C API

ElError ElNormalUniformSpectrum_c(ElMatrix_c A, ElInt n, complex_float center, float radius)
ElError ElNormalUniformSpectrum_z(ElMatrix_z A, ElInt n, complex_double center, double radius)
ElError ElNormalUniformSpectrumDist_c(ElDistMatrix_c A, ElInt n, complex_float center, float radius)
ElError ElNormalUniformSpectrumDist_z(ElDistMatrix_z A, ElInt n, complex_double center, double radius)

Python API

NormalUniformSpectrum(A, n, center=0, radius=1)