<img width="1181" alt="Image" src="https://github.com/user-attachments/assets/7d52ce51-2e4d-416e-afdb-99177d347bec" /> For a large structure, diag() function becomes slow.