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

Function imag

src/backend/cuda/complex.hpp:38–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37template<typename To, typename Ti>
38Array<To> imag(const Array<Ti> &in) {
39 common::Node_ptr in_node = in.getNode();
40 common::UnaryNode *node =
41 new common::UnaryNode(static_cast<af::dtype>(dtype_traits<To>::af_type),
42 "__cimag", in_node, af_imag_t);
43
44 return createNodeArray<To>(in.dims(), common::Node_ptr(node));
45}
46
47template<typename T>
48static const char *abs_name() {

Callers

nothing calls this directly

Calls 2

getNodeMethod · 0.45
dimsMethod · 0.45

Tested by

no test coverage detected