parameters: (self)
docstring: Is the expression a Hermitian matrix?
docstring_summary: Is the expression a Hermitian matrix?
docstring_tokens: Is the expression a Hermitian matrix?
function: def is_hermitian(self) -> bool:
          """Is the expression a Hermitian matrix?
          """
          if self.is_scalar() and self.is_real():
              return True
          elif self.ndim == 2 and self.shape[0] == self.shape[1]:
              if self._herm is None:
                  self._compute_symm_attr()
              return self._herm
          else:
              return False
function_tokens: def is_hermitian ( self ) -> bool : if self . is_scalar ( ) and self . is_real ( ) : return True elif self . ndim == 2 and self . shape [ 0 ] == self . shape [ 1 ] : if self . _herm is None : self . _compute_symm_attr ( ) return self . _herm else : return False