ee.Array.matrixToDiag
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
מחשבת מטריצה אלכסונית ריבועית ממטריצה של עמודה אחת.
שימוש | החזרות |
---|
Array.matrixToDiag() | מערך |
ארגומנט | סוג | פרטים |
---|
זה: input | מערך | מערך הקלט. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[[["\u003cp\u003e\u003ccode\u003eArray.matrixToDiag()\u003c/code\u003e constructs a square diagonal matrix using elements from a single-column input array.\u003c/p\u003e\n"],["\u003cp\u003eThe function takes an array as input and positions its elements along the diagonal of a new, square matrix, with all off-diagonal elements set to zero.\u003c/p\u003e\n"],["\u003cp\u003eThe resulting diagonal matrix is returned as a new array.\u003c/p\u003e\n"]]],["Transforms a single column matrix into a square diagonal matrix. The input is a one-dimensional array, and the function returns a new array representing the square diagonal matrix. The `matrixToDiag()` method, when applied to the input array, performs this conversion. The input array serves as the diagonal elements of the resulting square matrix.\n"],null,["# ee.Array.matrixToDiag\n\nComputes a square diagonal matrix from a single column matrix.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------------|---------|\n| Array.matrixToDiag`()` | Array |\n\n| Argument | Type | Details |\n|---------------|-------|------------------|\n| this: `input` | Array | The input array. |"]]