add is_hermitian to Matrix and SparseMatrix
Merge pull request #8173 from smichr/hermit

add is_hermitian to Matrix and SparseMatrix