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(BlockDistMatrix<T, U, V> &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)())