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

Function imag

src/backend/opencl/complex.hpp:37–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

getNodeMethod · 0.45
dimsMethod · 0.45

Tested by

no test coverage detected