ee.Array.dotProduct
Compute the dot product between two 1-D arrays.
Usage | Returns |
---|
Array.dotProduct(array2) | Number |
Argument | Type | Details |
---|
this: array1 | Array | The first 1-D array. |
array2 | Array | The second 1-D array. |
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 `dotProduct` method calculates the dot product of two 1-D arrays."],["It takes one argument, the second array, and returns a single number representing the dot product."],["Both input arrays should be 1-dimensional."]]],["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"]]