array.swapaxes should point to swapaxes free function (#441)

This commit is contained in:
davidkoski 2024-01-12 11:06:16 -08:00 committed by GitHub
parent 006d01ba42
commit 29081204d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1147,7 +1147,7 @@ void init_array(py::module_& m) {
"axis2"_a, "axis2"_a,
py::kw_only(), py::kw_only(),
"stream"_a = none, "stream"_a = none,
"See :func:`moveaxis`.") "See :func:`swapaxes`.")
.def( .def(
"transpose", "transpose",
[](const array& a, py::args axes, StreamOrDevice s) { [](const array& a, py::args axes, StreamOrDevice s) {