Use a different method for Hermitian matrices:
Construct complex-valued matrices for testing:
For the non-Hermitian complex-valued matrix
m, the function just uses Gaussian elimination:
For the Hermitian indefinite matrix
mi, the function tries the Cholesky method first:
For the Hermitian positive definite matrix
mp, the function succeeds with the Cholesky method: