ee.Array.transpose
Transposes two dimensions of an array.
Usage | Returns |
---|
Array.transpose(axis1, axis2) | Array |
Argument | Type | Details |
---|
this: array | Array | Array to transpose. |
axis1 | Integer, default: 0 | First axis to swap. |
axis2 | Integer, default: 1 | Second axis to swap. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["The `transpose` function swaps two dimensions (axes) of an array, effectively rotating or reshaping the data."],["It takes the array to transpose and two optional arguments (`axis1`, `axis2`) specifying the dimensions to swap, defaulting to the first and second dimensions."],["The function returns a new array with the specified dimensions transposed, leaving the original array unchanged."]]],[]]