stdlib/matrix.rb
#
# Returns +true+ if this is an hermitian matrix.
# Raises an error if matrix is not square.
#
Returns +true+ if this is an hermitian matrix.
Raises an error if matrix is not square.
Returns + true + if this is an hermitian matrix . Raises an error if matrix is not square .
def hermitian?
    Matrix.Raise ErrDimensionMismatch unless square?
    each_with_index(:upper).all? do |e, row, col|
      e == rows[col][row].conj
    end
  end
def hermitian? Matrix . Raise ErrDimensionMismatch unless square? each_with_index ( :upper ) . all? do | e , row , col | e == rows [ col ] [ row ] . conj end end
Returns +true+ if this is an hermitian matrix.
Returns + true + if this is an hermitian matrix .