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

Function af_not

src/api/c/unary.cpp:564–580  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

562};
563
564af_err af_not(af_array *out, const af_array in) {
565 try {
566 af_array tmp;
567 const ArrayInfo &in_info = getInfo(in);
568 if (in_info.ndims() == 0) { return af_retain_array(out, in); }
569
570 AF_CHECK(af_constant(&tmp, 0, in_info.ndims(), in_info.dims().get(),
571 in_info.getType()));
572
573 AF_CHECK(af_eq(out, in, tmp, false));
574
575 AF_CHECK(af_release_array(tmp));
576 }
577 CATCHALL;
578
579 return AF_SUCCESS;
580}
581
582template<typename T>
583static inline af_array bitOpNot(const af_array in) {

Callers 2

toTempFormatFunction · 0.85
operator!Method · 0.85

Calls 8

af_eqFunction · 0.85
af_retain_arrayFunction · 0.70
af_constantFunction · 0.70
af_release_arrayFunction · 0.70
ndimsMethod · 0.45
getMethod · 0.45
dimsMethod · 0.45
getTypeMethod · 0.45

Tested by 1

toTempFormatFunction · 0.68