MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / replace

Function replace

src/api/c/replace.cpp:38–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37template<typename T>
38void replace(af_array a, const af_array cond, const af_array b) {
39 select(getCopyOnWriteArray<T>(a), getArray<char>(cond), getArray<T>(a),
40 getArray<T>(b));
41}
42
43af_err af_replace(af_array a, const af_array cond, const af_array b) {
44 try {

Callers

nothing calls this directly

Calls 1

selectFunction · 0.50

Tested by

no test coverage detected