Skip to content

Commit 1b67466

Browse files
committed
Adding documentation for data.py
1 parent e66f299 commit 1b67466

File tree

4 files changed

+688
-52
lines changed

4 files changed

+688
-52
lines changed

arrayfire/array.py

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
########################################################
99

1010
"""
11-
Functions to create and operate on af.Array
11+
arrayfire.Array class and helper functions.
1212
"""
1313

1414
import inspect
@@ -102,48 +102,6 @@ def _binary_funcr(lhs, rhs, c_func):
102102

103103
return out
104104

105-
def transpose(a, conj=False):
106-
"""
107-
Perform the transpose on an input.
108-
109-
Parameters
110-
-----------
111-
a : af.Array
112-
Multi dimensional arrayfire array.
113-
114-
conj : optional: bool. default: False.
115-
Flag to specify if a complex conjugate needs to applied for complex inputs.
116-
117-
Returns
118-
--------
119-
out : af.Array
120-
Containing the tranpose of `a` for all batches.
121-
122-
"""
123-
out = Array()
124-
safe_call(backend.get().af_transpose(ct.pointer(out.arr), a.arr, conj))
125-
return out
126-
127-
def transpose_inplace(a, conj=False):
128-
"""
129-
Perform inplace transpose on an input.
130-
131-
Parameters
132-
-----------
133-
a : af.Array
134-
- Multi dimensional arrayfire array.
135-
- Contains transposed values on exit.
136-
137-
conj : optional: bool. default: False.
138-
Flag to specify if a complex conjugate needs to applied for complex inputs.
139-
140-
Note
141-
-------
142-
Input `a` needs to be a square matrix or a batch of square matrices.
143-
144-
"""
145-
safe_call(backend.get().af_transpose_inplace(a.arr, conj))
146-
147105
def _ctype_to_lists(ctype_arr, dim, shape, offset=0):
148106
if (dim == 0):
149107
return list(ctype_arr[offset : offset + shape[0]])

0 commit comments

Comments
 (0)