EntrywiseFill

Fill each entry of the passed in matrix by querying the specified function.

C++ API

void EntrywiseFill(Matrix<T> &A, std::function<T(void)> func)
void EntrywiseFill(AbstractDistMatrix<T> &A, std::function<T(void)> func)
void EntrywiseFill(DistMultiVec<T> &A, std::function<T(void)> func)

C API

ElError ElEntrywiseFill_i(ElMatrix_i A, ElInt (*fill)())
ElError ElEntrywiseFill_s(ElMatrix_s A, float (*fill)())
ElError ElEntrywiseFill_d(ElMatrix_d A, double (*fill)())
ElError ElEntrywiseFill_c(ElMatrix_c A, complex_float (*fill)())
ElError ElEntrywiseFill_z(ElMatrix_z A, complex_double (*fill)())
ElError ElEntrywiseFillDist_i(ElDistMatrix_i A, ElInt (*fill)())
ElError ElEntrywiseFillDist_s(ElDistMatrix_s A, float (*fill)())
ElError ElEntrywiseFillDist_d(ElDistMatrix_d A, double (*fill)())
ElError ElEntrywiseFillDist_c(ElDistMatrix_c A, complex_float (*fill)())
ElError ElEntrywiseFillDist_z(ElDistMatrix_z A, complex_double (*fill)())
ElError ElEntrywiseFillDistMultiVec_i(ElDistMultiVec_i A, ElInt (*fill)())
ElError ElEntrywiseFillDistMultiVec_s(ElDistMultiVec_s A, float (*fill)())
ElError ElEntrywiseFillDistMultiVec_d(ElDistMultiVec_d A, double (*fill)())
ElError ElEntrywiseFillDistMultiVec_c(ElDistMultiVec_c A, complex_float (*fill)())
ElError ElEntrywiseFillDistMultiVec_z(ElDistMultiVec_z A, complex_double (*fill)())

Python API

EntrywiseFill(A, fill)