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