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

Function resize

src/backend/oneapi/resize.cpp:20–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

dimsMethod · 0.45

Tested by

no test coverage detected