Question: Write a function called max eigval which takes a 2D NumPy array A representing a square matrix and returns the maximum eigenvalue of (A
Write a function called max eigval which takes a 2D NumPy array A representing a square matrix and returns the maximum eigenvalue of (A + A). The return value should be a non-negative real number. If A is not square or if A is not 2-dimensional, the function max_eigval prints the statement "Matrix is not square." and returns None.
Step by Step Solution
3.62 Rating (152 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
