ee.Array.leftShift
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Oblicza przesunięcie w lewo o v2 bitów dla każdego elementu v1.
Wykorzystanie | Zwroty |
---|
Array.leftShift(right) | Tablica |
Argument | Typ | Szczegóły |
---|
to: left | Tablica | Wartość po lewej stronie. |
right | Tablica | Wartość po prawej stronie. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-26 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eleftShift\u003c/code\u003e method performs a bitwise left shift operation on corresponding elements of two arrays.\u003c/p\u003e\n"],["\u003cp\u003eIt takes the \u003ccode\u003eright\u003c/code\u003e array as input and shifts the bits of the \u003ccode\u003eleft\u003c/code\u003e array elements by the corresponding number of positions specified in the \u003ccode\u003eright\u003c/code\u003e array.\u003c/p\u003e\n"],["\u003cp\u003eThe result is a new array containing the shifted values.\u003c/p\u003e\n"]]],["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"],null,["# ee.Array.leftShift\n\nOn an element-wise basis, calculates the left shift of v1 by v2 bits.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------------|---------|\n| Array.leftShift`(right)` | Array |\n\n| Argument | Type | Details |\n|--------------|-------|-----------------------|\n| this: `left` | Array | The left-hand value. |\n| `right` | Array | The right-hand value. |"]]