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

Function pad

src/api/cpp/data.cpp:349–358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347}
348
349array pad(const array &in, const dim4 &beginPadding, const dim4 &endPadding,
350 const borderType padFillType) {
351 af_array out = 0;
352 // FIXME(pradeep) Cannot use dim4::ndims() since that will
353 // always return 0 if any one of dimensions
354 // has no padding completely
355 AF_THROW(af_pad(&out, in.get(), 4, beginPadding.get(), 4, endPadding.get(),
356 padFillType));
357 return array(out);
358}
359
360} // namespace af

Callers

nothing calls this directly

Calls 3

af_padFunction · 0.50
arrayClass · 0.50
getMethod · 0.45

Tested by

no test coverage detected