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

Function createStridedArray

src/api/cpp/internal.cpp:15–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14namespace af {
15array createStridedArray(
16 const void *data, const dim_t offset,
17 const dim4 dims, // NOLINT(performance-unnecessary-value-param)
18 const dim4 strides, // NOLINT(performance-unnecessary-value-param)
19 const af::dtype ty, const af::source location) {
20 af_array res;
21 AF_THROW(af_create_strided_array(&res, data, offset, dims.ndims(),
22 dims.get(), strides.get(), ty, location));
23 return array(res);
24}
25
26dim4 getStrides(const array &in) {
27 dim_t s0, s1, s2, s3;

Callers 1

TESTFunction · 0.50

Calls 4

af_create_strided_arrayFunction · 0.50
arrayClass · 0.50
ndimsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected