ee.Array.matrixDiagonal
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
คำนวณเส้นทแยงมุมของเมทริกซ์ในคอลัมน์เดียว
การใช้งาน | การคืนสินค้า |
---|
Array.matrixDiagonal() | อาร์เรย์ |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
ดังนี้ input | อาร์เรย์ | อาร์เรย์อินพุต |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003e\u003ccode\u003ematrixDiagonal\u003c/code\u003e isolates the diagonal elements of a given array and returns them as a new array.\u003c/p\u003e\n"],["\u003cp\u003eThe function operates on the input array (\u003ccode\u003ethis\u003c/code\u003e) without modifying it, producing a new array containing only the diagonal elements.\u003c/p\u003e\n"],["\u003cp\u003eThis method is specifically designed for matrix operations and assumes the input array represents a matrix structure.\u003c/p\u003e\n"]]],[],null,["# ee.Array.matrixDiagonal\n\nComputes the diagonal of the matrix in a single column.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------------|---------|\n| Array.matrixDiagonal`()` | Array |\n\n| Argument | Type | Details |\n|---------------|-------|------------------|\n| this: `input` | Array | The input array. |"]]