ee.Array.leftShift
On an element-wise basis, calculates the left shift of v1 by v2 bits.
Usage | Returns |
---|
Array.leftShift(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 `leftShift` method performs a bitwise left shift operation on corresponding elements of two arrays."],["It takes the `right` array as input and shifts the bits of the `left` array elements by the corresponding number of positions specified in the `right` array."],["The result is a new array containing the shifted values."]]],["The function performs an element-wise left bit shift operation between two arrays. It takes two arrays as input: `left` (the array to be shifted) and `right` (the array defining the number of bits to shift). Each element in `left` is shifted left by the corresponding number of bits specified in `right`. The output is a new array containing the results of these shifts. The method `Array.leftShift(right)` returns the new array.\n"]]