ee.Array.dotProduct
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Oblicz iloczyn skalarny dwóch tablic 1-D.
Wykorzystanie | Zwroty |
---|
Array.dotProduct(array2) | Liczba |
Argument | Typ | Szczegóły |
---|
to: array1 | Tablica | Pierwsza tablica 1-D. |
array2 | Tablica | Druga tablica 1-D. |
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\u003edotProduct\u003c/code\u003e method calculates the dot product of two 1-D arrays.\u003c/p\u003e\n"],["\u003cp\u003eIt takes one argument, the second array, and returns a single number representing the dot product.\u003c/p\u003e\n"],["\u003cp\u003eBoth input arrays should be 1-dimensional.\u003c/p\u003e\n"]]],["The core functionality is to compute the dot product of two one-dimensional arrays. The `dotProduct` method, applied to `array1`, takes `array2` as an argument. Both arrays must be 1-D. It returns a single numerical value representing the dot product result. The function operates by multiplying corresponding elements from each array, and then summing the products.\n"],null,["# ee.Array.dotProduct\n\nCompute the dot product between two 1-D arrays.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------------------|---------|\n| Array.dotProduct`(array2)` | Number |\n\n| Argument | Type | Details |\n|----------------|-------|-----------------------|\n| this: `array1` | Array | The first 1-D array. |\n| `array2` | Array | The second 1-D array. |"]]