We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed42211 commit 58346ffCopy full SHA for 58346ff
src/stdlib_linalg.fypp
@@ -291,11 +291,7 @@ contains
291
pure function is_hermitian_${t1[0]}$${k1}$(A) result(res)
292
${t1}$, intent(in) :: A(:,:)
293
logical :: res
294
- if (.not. is_square(A)) then
295
- res = .false.
296
- return !nonsquare matrices cannot be Hermitian
297
- end if
298
- res = is_symmetric(A) !real symmetric matrices are Hermitian
+ res = is_symmetric(A) !symmetry and Hermiticity are equivalent for real matrices
299
end function is_hermitian_${t1[0]}$${k1}$
300
#:endfor
301
#:for k1, t1 in CMPLX_KINDS_TYPES
0 commit comments