|
59 | 59 | "broadcast_to", |
60 | 60 | "can_cast", |
61 | 61 | "column_stack", |
| 62 | + "concat", |
62 | 63 | "concatenate", |
63 | 64 | "copyto", |
64 | 65 | "dstack", |
|
69 | 70 | "hstack", |
70 | 71 | "moveaxis", |
71 | 72 | "ndim", |
| 73 | + "permute_dims", |
72 | 74 | "ravel", |
73 | 75 | "repeat", |
74 | 76 | "reshape", |
@@ -950,11 +952,13 @@ def concatenate( |
950 | 952 | """ |
951 | 953 | Join a sequence of arrays along an existing axis. |
952 | 954 |
|
| 955 | + Note that :obj:`dpnp.concat` is an alias of :obj:`dpnp.concatenate`. |
| 956 | +
|
953 | 957 | For full documentation refer to :obj:`numpy.concatenate`. |
954 | 958 |
|
955 | 959 | Parameters |
956 | 960 | ---------- |
957 | | - arrays : {dpnp.ndarray, usm_ndarray} |
| 961 | + arrays : {Sequence of dpnp.ndarray or usm_ndarray} |
958 | 962 | The arrays must have the same shape, except in the dimension |
959 | 963 | corresponding to axis (the first, by default). |
960 | 964 | axis : int, optional |
@@ -1031,6 +1035,9 @@ def concatenate( |
1031 | 1035 | return res |
1032 | 1036 |
|
1033 | 1037 |
|
| 1038 | +concat = concatenate # concat is an alias of concatenate |
| 1039 | + |
| 1040 | + |
1034 | 1041 | def copyto(dst, src, casting="same_kind", where=True): |
1035 | 1042 | """ |
1036 | 1043 | Copies values from one array to another, broadcasting as necessary. |
@@ -2309,6 +2316,8 @@ def transpose(a, axes=None): |
2309 | 2316 | """ |
2310 | 2317 | Returns an array with axes transposed. |
2311 | 2318 |
|
| 2319 | + Note that :obj:`dpnp.permute_dims` is an alias of :obj:`dpnp.transpose`. |
| 2320 | +
|
2312 | 2321 | For full documentation refer to :obj:`numpy.transpose`. |
2313 | 2322 |
|
2314 | 2323 | Parameters |
@@ -2375,6 +2384,9 @@ def transpose(a, axes=None): |
2375 | 2384 | return array.transpose(*axes) |
2376 | 2385 |
|
2377 | 2386 |
|
| 2387 | +permute_dims = transpose # permute_dims is an alias for transpose |
| 2388 | + |
| 2389 | + |
2378 | 2390 | def trim_zeros(filt, trim="fb"): |
2379 | 2391 | """ |
2380 | 2392 | Trim the leading and/or trailing zeros from a 1-D array. |
@@ -2513,7 +2525,7 @@ def unique( |
2513 | 2525 | (move the axis to the first dimension to keep the order of the other axes) |
2514 | 2526 | and then flattening the subarrays in C order. |
2515 | 2527 | For complex arrays all NaN values are considered equivalent (no matter |
2516 | | - whether the NaN is in the real or imaginary part). As the representant for |
| 2528 | + whether the NaN is in the real or imaginary part). As the representative for |
2517 | 2529 | the returned array the smallest one in the lexicographical order is chosen. |
2518 | 2530 | For multi-dimensional inputs, `unique_inverse` is reshaped such that the |
2519 | 2531 | input can be reconstructed using |
|
0 commit comments