@@ -81,12 +81,12 @@ namespace af
8181 // af::array member functions. same behavior as those below
8282 af_array get ();
8383 af_array get () const ;
84- dim_type elements () const ;
84+ dim_t elements () const ;
8585 template <typename T> T* host () const ;
8686 void host (void *ptr) const ;
8787 dtype type () const ;
8888 dim4 dims () const ;
89- dim_type dims (unsigned dim) const ;
89+ dim_t dims (unsigned dim) const ;
9090 unsigned numdims () const ;
9191 size_t bytes () const ;
9292 array copy () const ;
@@ -162,7 +162,7 @@ namespace af
162162
163163 */
164164 explicit
165- array (dim_type dim0, dtype ty = f32 );
165+ array (dim_t dim0, dtype ty = f32 );
166166
167167 /* *
168168 Allocate a two-dimensional array of a specified size with undefined contents
@@ -187,7 +187,7 @@ namespace af
187187
188188 */
189189 explicit
190- array (dim_type dim0, dim_type dim1, dtype ty = f32 );
190+ array (dim_t dim0, dim_t dim1, dtype ty = f32 );
191191
192192 /* *
193193 Allocate a three-dimensional (3D) array of a specified size with undefined contents
@@ -213,7 +213,7 @@ namespace af
213213
214214 */
215215 explicit
216- array (dim_type dim0, dim_type dim1, dim_type dim2, dtype ty = f32 );
216+ array (dim_t dim0, dim_t dim1, dim_t dim2, dtype ty = f32 );
217217
218218 /* *
219219 Allocate a four-dimensional (4D) array of a specified size with undefined contents
@@ -239,7 +239,7 @@ namespace af
239239
240240 */
241241 explicit
242- array (dim_type dim0, dim_type dim1, dim_type dim2, dim_type dim3, dtype ty = f32 );
242+ array (dim_t dim0, dim_t dim1, dim_t dim2, dim_t dim3, dtype ty = f32 );
243243
244244 /* *
245245 Allocate an array of a specified size with undefined contents
@@ -301,8 +301,8 @@ namespace af
301301 */
302302 template <typename T>
303303 explicit
304- array (dim_type dim0,
305- const T *pointer, af_source_t src=afHost, dim_type ngfor=0 );
304+ array (dim_t dim0,
305+ const T *pointer, af_source_t src=afHost, dim_t ngfor=0 );
306306
307307
308308 /* *
@@ -331,8 +331,8 @@ namespace af
331331 */
332332 template <typename T>
333333 explicit
334- array (dim_type dim0, dim_type dim1,
335- const T *pointer, af_source_t src=afHost, dim_type ngfor=0 );
334+ array (dim_t dim0, dim_t dim1,
335+ const T *pointer, af_source_t src=afHost, dim_t ngfor=0 );
336336
337337
338338 /* *
@@ -360,8 +360,8 @@ namespace af
360360 */
361361 template <typename T>
362362 explicit
363- array (dim_type dim0, dim_type dim1, dim_type dim2,
364- const T *pointer, af_source_t src=afHost, dim_type ngfor=0 );
363+ array (dim_t dim0, dim_t dim1, dim_t dim2,
364+ const T *pointer, af_source_t src=afHost, dim_t ngfor=0 );
365365
366366
367367 /* *
@@ -390,8 +390,8 @@ namespace af
390390 */
391391 template <typename T>
392392 explicit
393- array (dim_type dim0, dim_type dim1, dim_type dim2, dim_type dim3,
394- const T *pointer, af_source_t src=afHost, dim_type ngfor=0 );
393+ array (dim_t dim0, dim_t dim1, dim_t dim2, dim_t dim3,
394+ const T *pointer, af_source_t src=afHost, dim_t ngfor=0 );
395395
396396 /* *
397397 Create an array of specified size on the device using a host/device pointer
@@ -425,7 +425,7 @@ namespace af
425425 template <typename T>
426426 explicit
427427 array (const dim4& dims,
428- const T *pointer, af_source_t src=afHost, dim_type ngfor=0 );
428+ const T *pointer, af_source_t src=afHost, dim_t ngfor=0 );
429429
430430 /* *
431431 @}
@@ -449,7 +449,7 @@ namespace af
449449 /* *
450450 get the number of elements in array
451451 */
452- dim_type elements () const ;
452+ dim_t elements () const ;
453453
454454 /* *
455455 Copy array data to host and return host pointer
@@ -479,7 +479,7 @@ namespace af
479479 /* *
480480 Get dimensions of the array
481481 */
482- dim_type dims (unsigned dim) const ;
482+ dim_t dims (unsigned dim) const ;
483483
484484 /* *
485485 Get the number of dimensions of the array
@@ -952,7 +952,7 @@ extern "C" {
952952
953953 \returns \ref AF_SUCCESS if the operation was a success
954954 */
955- AFAPI af_err af_create_array (af_array *arr, const void * const data, const unsigned ndims, const dim_type * const dims, const af_dtype type);
955+ AFAPI af_err af_create_array (af_array *arr, const void * const data, const unsigned ndims, const dim_t * const dims, const af_dtype type);
956956
957957 /* *
958958 Create af_array handle
@@ -964,7 +964,7 @@ extern "C" {
964964
965965 \returns \ref AF_SUCCESS if the operation was a success
966966 */
967- AFAPI af_err af_create_handle (af_array *arr, const unsigned ndims, const dim_type * const dims, const af_dtype type);
967+ AFAPI af_err af_create_handle (af_array *arr, const unsigned ndims, const dim_t * const dims, const af_dtype type);
968968
969969 /* *
970970 @}
0 commit comments