88########################################################
99
1010"""
11- arrayfire. Array class and helper functions.
11+ Array class and helper functions.
1212"""
1313
1414import inspect
@@ -488,7 +488,7 @@ def device_ptr(self):
488488 Return the device pointer exclusively held by the array.
489489
490490 Returns
491- ------
491+ --------
492492 ptr : int
493493 Contains location of the device pointer
494494
@@ -508,7 +508,7 @@ def raw_ptr(self):
508508 Return the device pointer held by the array.
509509
510510 Returns
511- ------
511+ --------
512512 ptr : int
513513 Contains location of the device pointer
514514
@@ -529,7 +529,7 @@ def offset(self):
529529 Return the offset, of the first element relative to the raw pointer.
530530
531531 Returns
532- ------
532+ --------
533533 offset : int
534534 The offset in number of elements
535535 """
@@ -542,7 +542,7 @@ def strides(self):
542542 Return the distance in bytes between consecutive elements for each dimension.
543543
544544 Returns
545- ------
545+ --------
546546 strides : tuple
547547 The strides for each dimension
548548 """
@@ -1078,7 +1078,7 @@ def to_ctype(self, row_major=False, return_shape=False):
10781078 Return the data as a ctype C array after copying to host memory
10791079
10801080 Parameters
1081- ---------
1081+ -----------
10821082
10831083 row_major: optional: bool. default: False.
10841084 Specifies if a transpose needs to occur before copying to host memory.
@@ -1112,7 +1112,7 @@ def to_array(self, row_major=False, return_shape=False):
11121112 Return the data as array.array
11131113
11141114 Parameters
1115- ---------
1115+ -----------
11161116
11171117 row_major: optional: bool. default: False.
11181118 Specifies if a transpose needs to occur before copying to host memory.
@@ -1147,7 +1147,7 @@ def to_list(self, row_major=False):
11471147 Return the data as list
11481148
11491149 Parameters
1150- ---------
1150+ -----------
11511151
11521152 row_major: optional: bool. default: False.
11531153 Specifies if a transpose needs to occur before copying to host memory.
0 commit comments