Pengumuman: Semua project nonkomersial yang terdaftar untuk menggunakan Earth Engine sebelum
15 April 2025 harus
memverifikasi kelayakan nonkomersial untuk mempertahankan akses Earth Engine.
ee.Array.leftShift
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Berdasarkan elemen, menghitung pergeseran kiri v1 sebanyak v2 bit.
Penggunaan | Hasil |
---|
Array.leftShift(right) | Array |
Argumen | Jenis | Detail |
---|
ini: left | Array | Nilai sebelah kiri. |
right | Array | Nilai sebelah kanan. |
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-26 UTC.
[null,null,["Terakhir diperbarui pada 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. |"]]