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

Function abs

src/backend/cuda/complex.hpp:61–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59
60template<typename To, typename Ti>
61Array<To> abs(const Array<Ti> &in) {
62 common::Node_ptr in_node = in.getNode();
63 common::UnaryNode *node =
64 new common::UnaryNode(static_cast<af::dtype>(dtype_traits<To>::af_type),
65 abs_name<Ti>(), in_node, af_abs_t);
66
67 return createNodeArray<To>(in.dims(), common::Node_ptr(node));
68}
69
70template<typename T>
71static const char *conj_name() {

Callers

nothing calls this directly

Calls 2

getNodeMethod · 0.45
dimsMethod · 0.45

Tested by

no test coverage detected