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

Function initEmptyArray

src/api/cpp/array.cpp:112–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112af_array initEmptyArray(af::dtype ty, dim_t d0, dim_t d1 = 1, dim_t d2 = 1,
113 dim_t d3 = 1) {
114 af_array arr;
115 dim_t my_dims[] = {d0, d1, d2, d3};
116 AF_THROW(af_create_handle(&arr, AF_MAX_DIMS, my_dims, ty));
117 return arr;
118}
119
120af_array initDataArray(const void *ptr, int ty, af::source src, dim_t d0,
121 dim_t d1 = 1, dim_t d2 = 1, dim_t d3 = 1) {

Callers 1

arrayMethod · 0.85

Calls 1

af_create_handleFunction · 0.50

Tested by

no test coverage detected