|
8 | 8 | ########################################################
|
9 | 9 |
|
10 | 10 | """
|
11 |
| -Functions to create and operate on af.Array |
| 11 | +arrayfire.Array class and helper functions. |
12 | 12 | """
|
13 | 13 |
|
14 | 14 | import inspect
|
@@ -102,48 +102,6 @@ def _binary_funcr(lhs, rhs, c_func):
|
102 | 102 |
|
103 | 103 | return out
|
104 | 104 |
|
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 |
| - |
147 | 105 | def _ctype_to_lists(ctype_arr, dim, shape, offset=0):
|
148 | 106 | if (dim == 0):
|
149 | 107 | return list(ctype_arr[offset : offset + shape[0]])
|
|
0 commit comments