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

Function real

src/backend/cuda/complex.hpp:28–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26
27template<typename To, typename Ti>
28Array<To> real(const Array<Ti> &in) {
29 common::Node_ptr in_node = in.getNode();
30 common::UnaryNode *node =
31 new common::UnaryNode(static_cast<af::dtype>(dtype_traits<To>::af_type),
32 "__creal", in_node, af_real_t);
33
34 return createNodeArray<To>(in.dims(), common::Node_ptr(node));
35}
36
37template<typename To, typename Ti>
38Array<To> imag(const Array<Ti> &in) {

Callers

nothing calls this directly

Calls 2

getNodeMethod · 0.45
dimsMethod · 0.45

Tested by

no test coverage detected