Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.Array.matrixSolve
Stay organized with collections
Save and categorize content based on your preferences.
Solves for x in the matrix equation A * x = B, finding a least-squares solution if A is overdetermined.
Usage | Returns | Array.matrixSolve(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."],[[["\u003cp\u003e\u003ccode\u003ematrixSolve\u003c/code\u003e finds the solution for 'x' in the equation A * x = B, where 'A' is represented by the Array calling the method, and 'B' is provided as an argument.\u003c/p\u003e\n"],["\u003cp\u003eWhen the system of equations is overdetermined (more equations than unknowns), the method calculates a least-squares solution that minimizes the error.\u003c/p\u003e\n"],["\u003cp\u003eThe method returns an Array representing the 'x' vector that solves the equation.\u003c/p\u003e\n"]]],[],null,["# ee.Array.matrixSolve\n\nSolves for x in the matrix equation A \\* x = B, finding a least-squares solution if A is overdetermined.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------------------|---------|\n| Array.matrixSolve`(right)` | Array |\n\n| Argument | Type | Details |\n|--------------|-------|-----------------------|\n| this: `left` | Array | The left-hand value. |\n| `right` | Array | The right-hand value. |"]]