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

Function reshape

src/backend/cpu/reshape.cpp:26–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24
25template<typename inType, typename outType>
26Array<outType> reshape(const Array<inType> &in, const dim4 &outDims,
27 outType defaultValue, double scale) {
28 Array<outType> out = createValueArray(outDims, defaultValue);
29 getQueue().enqueue(kernel::copyElemwise<outType, inType>, out, in,
30 defaultValue, scale);
31 return out;
32}
33
34#define INSTANTIATE(T) \
35 template void multiply_inplace<T>(Array<T> & in, double norm);

Callers 2

fftFunction · 0.50
fft_r2cFunction · 0.50

Calls 3

createValueArrayFunction · 0.70
getQueueFunction · 0.50
enqueueMethod · 0.45

Tested by

no test coverage detected