8
8
########################################################
9
9
10
10
"""
11
- arrayfire. Array class and helper functions.
11
+ Array class and helper functions.
12
12
"""
13
13
14
14
import inspect
@@ -488,7 +488,7 @@ def device_ptr(self):
488
488
Return the device pointer exclusively held by the array.
489
489
490
490
Returns
491
- ------
491
+ --------
492
492
ptr : int
493
493
Contains location of the device pointer
494
494
@@ -508,7 +508,7 @@ def raw_ptr(self):
508
508
Return the device pointer held by the array.
509
509
510
510
Returns
511
- ------
511
+ --------
512
512
ptr : int
513
513
Contains location of the device pointer
514
514
@@ -529,7 +529,7 @@ def offset(self):
529
529
Return the offset, of the first element relative to the raw pointer.
530
530
531
531
Returns
532
- ------
532
+ --------
533
533
offset : int
534
534
The offset in number of elements
535
535
"""
@@ -542,7 +542,7 @@ def strides(self):
542
542
Return the distance in bytes between consecutive elements for each dimension.
543
543
544
544
Returns
545
- ------
545
+ --------
546
546
strides : tuple
547
547
The strides for each dimension
548
548
"""
@@ -1078,7 +1078,7 @@ def to_ctype(self, row_major=False, return_shape=False):
1078
1078
Return the data as a ctype C array after copying to host memory
1079
1079
1080
1080
Parameters
1081
- ---------
1081
+ -----------
1082
1082
1083
1083
row_major: optional: bool. default: False.
1084
1084
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):
1112
1112
Return the data as array.array
1113
1113
1114
1114
Parameters
1115
- ---------
1115
+ -----------
1116
1116
1117
1117
row_major: optional: bool. default: False.
1118
1118
Specifies if a transpose needs to occur before copying to host memory.
@@ -1147,7 +1147,7 @@ def to_list(self, row_major=False):
1147
1147
Return the data as list
1148
1148
1149
1149
Parameters
1150
- ---------
1150
+ -----------
1151
1151
1152
1152
row_major: optional: bool. default: False.
1153
1153
Specifies if a transpose needs to occur before copying to host memory.
0 commit comments