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

Function resize

src/backend/cuda/resize.cpp:19–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17namespace cuda {
18template<typename T>
19Array<T> resize(const Array<T> &in, const dim_t odim0, const dim_t odim1,
20 const af_interp_type method) {
21 const af::dim4 &iDims = in.dims();
22 af::dim4 oDims(odim0, odim1, iDims[2], iDims[3]);
23
24 Array<T> out = createEmptyArray<T>(oDims);
25
26 kernel::resize<T>(out, in, method);
27
28 return out;
29}
30
31#define INSTANTIATE(T) \
32 template Array<T> resize<T>(const Array<T> &in, const dim_t odim0, \

Callers 1

fast_pyramidFunction · 0.70

Calls 1

dimsMethod · 0.45

Tested by

no test coverage detected