MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / operator-

Method operator-

src/api/cpp/array.cpp:975–981  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

973#undef BINARY_TYPE
974
975array array::operator-() const {
976 af_array lhs = this->get();
977 af_array out;
978 array cst = constant(0, this->dims(), this->type());
979 AF_THROW(af_sub(&out, cst.get(), lhs, gforGet()));
980 return array(out);
981}
982
983array array::operator!() const {
984 af_array lhs = this->get();

Callers

nothing calls this directly

Calls 7

getMethod · 0.95
dimsMethod · 0.95
typeMethod · 0.95
constantFunction · 0.85
af_subFunction · 0.85
gforGetFunction · 0.85
arrayClass · 0.50

Tested by

no test coverage detected