Fiedler

Given a vector \(c\) of length \(n\), a Fielder matrix is an \(n \times n\) matrix with entry \((i,j)\) (counting from zero) set to

\[A(i,j) = |c(i)-c(j)|.\]

C++ API

void Fiedler(Matrix<F> &A, const std::vector<F> &c)
void Fiedler(AbstractDistMatrix<F> &A, const std::vector<F> &c)

C API

ElError ElFiedler_s(ElMatrix_s A, ElInt cSize, float* cBuf)
ElError ElFiedler_d(ElMatrix_d A, ElInt cSize, double* cBuf)
ElError ElFiedler_c(ElMatrix_c A, ElInt cSize, complex_float* cBuf)
ElError ElFiedler_z(ElMatrix_z A, ElInt cSize, complex_double* cBuf)
ElError ElFiedlerDist_s(ElDistMatrix_s A, ElInt cSize, float* cBuf)
ElError ElFiedlerDist_d(ElDistMatrix_d A, ElInt cSize, double* cBuf)
ElError ElFiedlerDist_c(ElDistMatrix_c A, ElInt cSize, complex_float* cBuf)
ElError ElFiedlerDist_z(ElDistMatrix_z A, ElInt cSize, complex_double* cBuf)

Python API

Fiedler(A, c)