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

Function checkOp

src/backend/cpu/unary.hpp:115–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113
114template<typename T, af_op_t op>
115Array<char> checkOp(const Array<T> &in, dim4 outDim = dim4(-1, -1, -1, -1)) {
116 common::Node_ptr in_node = in.getNode();
117 auto node = std::make_shared<jit::UnaryNode<char, T, op>>(in_node);
118
119 if (outDim == dim4(-1, -1, -1, -1)) { outDim = in.dims(); }
120 return createNodeArray<char>(outDim, move(node));
121}
122
123} // namespace cpu
124} // namespace arrayfire

Callers

nothing calls this directly

Calls 3

dim4Class · 0.70
getNodeMethod · 0.45
dimsMethod · 0.45

Tested by

no test coverage detected