ee.Array.matrixToDiag
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह फ़ंक्शन, एक कॉलम वाले मैट्रिक्स से स्क्वेयर डायगोनल मैट्रिक्स का हिसाब लगाता है.
इस्तेमाल | रिटर्न |
---|
Array.matrixToDiag() | Array |
आर्ग्यूमेंट | टाइप | विवरण |
---|
यह: input | Array | इनपुट ऐरे. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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. |"]]