ee.Array.rightShift
On an element-wise basis, calculates the signed right shift of v1 by v2 bits.
Usage | Returns |
---|
Array.rightShift(right) | Array |
Argument | Type | Details |
---|
this: left | Array | The left-hand value. |
right | Array | The right-hand value. |
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 `rightShift` method performs a bitwise signed right shift operation on two arrays."],["It shifts the elements of the 'left' array by the number of bits specified in the corresponding elements of the 'right' array."],["The result is a new array containing the shifted values."],["The original arrays, 'left' and 'right', remain unchanged."]]],["The core function is an element-wise signed right shift operation. It takes two arrays, `left` and `right`, as input. `left` represents the value being shifted, and `right` specifies the number of bits to shift. The function, `Array.rightShift(right)`, calculates the signed right shift of each element in the `left` array by the corresponding number of bits specified in the `right` array, returning a new `Array` with the shifted results.\n"]]