eigenValuesNonSym: Set size of the output vector before filling it
Rather than assuming the caller has set it to the correct size already. Setting the size in the method eigenValuesNonSym itself makes code more robust. Plus, the time needed for that should be negligible compared to the actual eigenvalue computations.
Please register or sign in to comment