Question: Write a function in Python (ComputeEig) that will take a Hermitian matrix and return its eigenvalues and eigenvectors. In doing this, you will need to

Write a function in Python (ComputeEig) that will take a Hermitian matrix and return its eigenvalues and eigenvectors. In doing this, you will need to check that the matrix that is passed is both square and Hermitian before it performs operations. The function should return the real eigenvalues and the eigenvectors if the matrix is both square and Hermitian. If either is not true, the function should through an error and indicate the problem.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!