EntrywiseMap¶
Replace each entry of the passed in matrix with a specified function of the existing entry.
C++ API¶
-
void
EntrywiseMap
(AbstractDistMatrix<T> &A, std::function<T(T)> func)¶
-
void
EntrywiseMap
(BlockDistMatrix<T, U, V> &A, std::function<T(T)> func)¶
-
void
EntrywiseMap
(SparseMatrix<T> &A, std::function<T(T)> func)¶
-
void
EntrywiseMap
(DistSparseMatrix<T> &A, std::function<T(T)> func)¶
C API¶
-
ElError
ElEntrywiseMap_c
(ElMatrix_c A, complex_float (*func)(complex_float))¶
-
ElError
ElEntrywiseMap_z
(ElMatrix_z A, complex_double (*func)(complex_double))¶
-
ElError
ElEntrywiseMapDist_c
(ElDistMatrix_c A, complex_float (*func)(complex_float))¶
-
ElError
ElEntrywiseMapDist_z
(ElDistMatrix_z A, complex_double (*func)(complex_double))¶
-
ElError
ElEntrywiseMapSparse_c
(ElSparseMatrix_c A, complex_float (*func)(complex_float))¶
-
ElError
ElEntrywiseMapSparse_z
(ElSparseMatrix_z A, complex_double (*func)(complex_double))¶
-
ElError
ElEntrywiseMapDistSparse_c
(ElDistSparseMatrix_c A, complex_float (*func)(complex_float))¶
-
ElError
ElEntrywiseMapDistSparse_z
(ElDistSparseMatrix_z A, complex_double (*func)(complex_double))¶